Record Class SingleSiteObject
java.lang.Object
java.lang.Record
io.clonecloudstore.reconciliator.model.SingleSiteObject
-
Constructor Summary
ConstructorsConstructorDescriptionSingleSiteObject(String site, short nstatus, Instant event) Creates an instance of aSingleSiteObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.inthashCode()Returns a hash code value for this object.shortnstatus()Returns the value of thenstatusrecord component.site()Returns the value of thesiterecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SingleSiteObject
Creates an instance of aSingleSiteObjectrecord class.- Parameters:
site- the value for thesiterecord componentnstatus- the value for thenstatusrecord componentevent- the value for theeventrecord component
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-
nstatus
public short nstatus()Returns the value of thenstatusrecord component.- Returns:
- the value of the
nstatusrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-