Package io.mateu.dtos
Record Class ViewDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ViewDto
- Record Components:
header- Header itemsleft- Left aside itemsmain- Main itemsright- Right aside items- Footer items
public record ViewDto(ViewPartDto header, ViewPartDto left, ViewPartDto main, ViewPartDto right, ViewPartDto footer)
extends Record
A view
-
Constructor Summary
ConstructorsConstructorDescriptionViewDto(ViewPartDto header, ViewPartDto left, ViewPartDto main, ViewPartDto right, ViewPartDto footer) Creates an instance of aViewDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.left()Returns the value of theleftrecord component.main()Returns the value of themainrecord component.right()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ViewDto
public ViewDto(ViewPartDto header, ViewPartDto left, ViewPartDto main, ViewPartDto right, ViewPartDto footer) Creates an instance of aViewDtorecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
main
Returns the value of themainrecord component.- Returns:
- the value of the
mainrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-