Package io.mateu.dtos

Record Class SplitLayoutDto

java.lang.Object
java.lang.Record
io.mateu.dtos.SplitLayoutDto
All Implemented Interfaces:
ComponentMetadataDto

public record SplitLayoutDto(OrientationDto orientation, SplitLayoutVariantDto variant, boolean fullWidth) extends Record implements ComponentMetadataDto
Metadata for a split layout. Child componentIds are in the SplitLayout component itself
  • Constructor Details

    • SplitLayoutDto

      public SplitLayoutDto(OrientationDto orientation, SplitLayoutVariantDto variant, boolean fullWidth)
      Creates an instance of a SplitLayoutDto record class.
      Parameters:
      orientation - the value for the orientation record component
      variant - the value for the variant record component
      fullWidth - the value for the fullWidth 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.
    • orientation

      public OrientationDto orientation()
      Returns the value of the orientation record component.
      Returns:
      the value of the orientation record component
    • variant

      public SplitLayoutVariantDto variant()
      Returns the value of the variant record component.
      Returns:
      the value of the variant record component
    • fullWidth

      public boolean fullWidth()
      Returns the value of the fullWidth record component.
      Returns:
      the value of the fullWidth record component