Package io.mateu.dtos
Record Class ViewPartDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ViewPartDto
- Record Components:
cssClasses- Css cssClasses to be applied to this view partcomponentIds- List of component ids for this view part
A view part. E.g. header, footer, main, and left/right asides
-
Constructor Summary
ConstructorsConstructorDescriptionViewPartDto(String cssClasses, List<String> componentIds) Creates an instance of aViewPartDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentIdsrecord component.Returns the value of thecssClassesrecord 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
-
ViewPartDto
Creates an instance of aViewPartDtorecord class.- Parameters:
cssClasses- the value for thecssClassesrecord componentcomponentIds- the value for thecomponentIdsrecord component
-
-
Method Details
-
componentIds
Returns the value of thecomponentIdsrecord component.- Returns:
- the value of the
componentIdsrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
cssClasses
Returns the value of thecssClassesrecord component.- Returns:
- the value of the
cssClassesrecord component
-