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 Summary
ConstructorsConstructorDescriptionSplitLayoutDto(OrientationDto orientation, SplitLayoutVariantDto variant, boolean fullWidth) Creates an instance of aSplitLayoutDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullWidthrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theorientationrecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
SplitLayoutDto
Creates an instance of aSplitLayoutDtorecord class.- Parameters:
orientation- the value for theorientationrecord componentvariant- the value for thevariantrecord componentfullWidth- the value for thefullWidthrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
orientation
Returns the value of theorientationrecord component.- Returns:
- the value of the
orientationrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
fullWidth
public boolean fullWidth()Returns the value of thefullWidthrecord component.- Returns:
- the value of the
fullWidthrecord component
-