Record Class LabelMeasure

java.lang.Object
java.lang.Record
ch.tocco.nice2.reporting.impl.sync.labelformat.LabelMeasure

public record LabelMeasure(BigDecimal horizontalPitch, BigDecimal verticalPitch, BigDecimal width, BigDecimal height, BigDecimal leftMargin, BigDecimal topMargin, int columns, int rows) extends Record
  • Constructor Details

    • LabelMeasure

      public LabelMeasure(BigDecimal horizontalPitch, BigDecimal verticalPitch, BigDecimal width, BigDecimal height, BigDecimal leftMargin, BigDecimal topMargin, int columns, int rows)
      Creates an instance of a LabelMeasure record class.
      Parameters:
      horizontalPitch - the value for the horizontalPitch record component
      verticalPitch - the value for the verticalPitch record component
      width - the value for the width record component
      height - the value for the height record component
      leftMargin - the value for the leftMargin record component
      topMargin - the value for the topMargin record component
      columns - the value for the columns record component
      rows - the value for the rows record component
  • Method Details

    • fromString

      public static LabelMeasure fromString(String measure)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • horizontalPitch

      public BigDecimal horizontalPitch()
      Returns the value of the horizontalPitch record component.
      Returns:
      the value of the horizontalPitch record component
    • verticalPitch

      public BigDecimal verticalPitch()
      Returns the value of the verticalPitch record component.
      Returns:
      the value of the verticalPitch record component
    • width

      public BigDecimal width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public BigDecimal height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • leftMargin

      public BigDecimal leftMargin()
      Returns the value of the leftMargin record component.
      Returns:
      the value of the leftMargin record component
    • topMargin

      public BigDecimal topMargin()
      Returns the value of the topMargin record component.
      Returns:
      the value of the topMargin record component
    • columns

      public int columns()
      Returns the value of the columns record component.
      Returns:
      the value of the columns record component
    • rows

      public int rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component