Package io.mateu.dtos
Record Class BoardLayoutItemDto
java.lang.Object
java.lang.Record
io.mateu.dtos.BoardLayoutItemDto
- All Implemented Interfaces:
ComponentMetadataDto
public record BoardLayoutItemDto(List<ClientSideComponentDto> content, int boardCols)
extends Record
implements ComponentMetadataDto
A tab
-
Constructor Summary
ConstructorsConstructorDescriptionBoardLayoutItemDto(List<ClientSideComponentDto> content, int boardCols) Creates an instance of aBoardLayoutItemDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theboardColsrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BoardLayoutItemDto
Creates an instance of aBoardLayoutItemDtorecord class.- Parameters:
content- the value for thecontentrecord componentboardCols- the value for theboardColsrecord 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 '=='. -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
boardCols
public int boardCols()Returns the value of theboardColsrecord component.- Returns:
- the value of the
boardColsrecord component
-