Record Class DiscoveryMessage
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.channels.messages.DiscoveryMessage
- Record Components:
identity- the node identity of the advertising nodeprotocols- the list of protocol names or identifiers supported by the node
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryMessage(BabelNode identity, List<String> protocols) Creates an instance of aDiscoveryMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.Returns the value of theprotocolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveryMessage
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
identity
-
protocols
-