Record Class SiteSummary
java.lang.Object
java.lang.Record
io.meeds.layout.model.SiteSummary
-
Constructor Summary
ConstructorsConstructorDescriptionSiteSummary(long siteId, String type, String name, String label, String description, boolean displayed) Creates an instance of aSiteSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.booleanReturns the value of thedisplayedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.name()Returns the value of thenamerecord component.longsiteId()Returns the value of thesiteIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SiteSummary
public SiteSummary(long siteId, String type, String name, String label, String description, boolean displayed) Creates an instance of aSiteSummaryrecord class.- Parameters:
siteId- the value for thesiteIdrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentdisplayed- the value for thedisplayedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
siteId
public long siteId()Returns the value of thesiteIdrecord component.- Returns:
- the value of the
siteIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
displayed
public boolean displayed()Returns the value of thedisplayedrecord component.- Returns:
- the value of the
displayedrecord component
-