Record Class PublicKeyBabelNode
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.channels.PublicKeyBabelNode
- Record Components:
identity- the unique identifier of this node
- All Implemented Interfaces:
BabelNode
-
Constructor Summary
ConstructorsConstructorDescriptionPublicKeyBabelNode(PublicKey identity) Creates an instance of aPublicKeyBabelNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.static Comparator<PublicKeyBabelNode> Returns the singleton comparator for orderingPublicKeyBabelNodeinstances.inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublicKeyBabelNode
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
getDefaultComparator
Returns the singleton comparator for orderingPublicKeyBabelNodeinstances.- Returns:
- the default comparator instance
-
toString
-
identity
-