Record Class ResponsiveStepPropertyValue

java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.custom.expressionresolver.formlayout.ResponsiveStepPropertyValue
Record Components:
minWidth - the minimum width that activates the step
column - the number of columns for the step
labelsPosition - labels position for the step, when defined

public record ResponsiveStepPropertyValue(String minWidth, int column, String labelsPosition) extends Record
Property value representation of a FormLayout.ResponsiveStep.
  • Constructor Details

    • ResponsiveStepPropertyValue

      public ResponsiveStepPropertyValue(String minWidth, int column, String labelsPosition)
      Creates an instance of a ResponsiveStepPropertyValue record class.
      Parameters:
      minWidth - the value for the minWidth record component
      column - the value for the column record component
      labelsPosition - the value for the labelsPosition record component
  • Method Details

    • 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 '=='.
      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.
    • minWidth

      public String minWidth()
      Returns the value of the minWidth record component.
      Returns:
      the value of the minWidth record component
    • column

      public int column()
      Returns the value of the column record component.
      Returns:
      the value of the column record component
    • labelsPosition

      public String labelsPosition()
      Returns the value of the labelsPosition record component.
      Returns:
      the value of the labelsPosition record component