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 aSingleSiteObject
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.event()
Returns the value of theevent
record component.int
hashCode()
Returns a hash code value for this object.short
nstatus()
Returns the value of thenstatus
record component.site()
Returns the value of thesite
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
SingleSiteObject
Creates an instance of aSingleSiteObject
record class.- Parameters:
site
- the value for thesite
record componentnstatus
- the value for thenstatus
record componentevent
- the value for theevent
record 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 thesite
record component.- Returns:
- the value of the
site
record component
-
nstatus
public short nstatus()Returns the value of thenstatus
record component.- Returns:
- the value of the
nstatus
record component
-
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-