Package org.cha0scollective.wwpg.api
Record Class EndpointIdentity
java.lang.Object
java.lang.Record
org.cha0scollective.wwpg.api.EndpointIdentity
Persistent device and local node address; terminal list order is irrelevant.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointIdentity(DeviceIdentity device, String nodeKey) Creates an instance of aEndpointIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodeKey()Returns the value of thenodeKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EndpointIdentity
Creates an instance of aEndpointIdentityrecord class.- Parameters:
device- the value for thedevicerecord componentnodeKey- the value for thenodeKeyrecord component
-
-
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). -
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-
nodeKey
Returns the value of thenodeKeyrecord component.- Returns:
- the value of the
nodeKeyrecord component
-