java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.ClusterNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gossip()Returns the value of thegossiprecord component.final inthashCode()Returns a hash code value for this object.static List<ClusterNode> parse(systems.comodal.jsoniter.JsonIterator ji) pubKey()Returns the value of thepubKeyrecord component.rpc()Returns the value of therpcrecord component.final StringtoString()Returns a string representation of this record class.tpu()Returns the value of thetpurecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ClusterNode
Creates an instance of aClusterNoderecord class.- Parameters:
gossip- the value for thegossiprecord componentpubKey- the value for thepubKeyrecord componentrpc- the value for therpcrecord componenttpu- the value for thetpurecord componentversion- the value for theversionrecord component
-
-
Method Details
-
parse
-
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). -
gossip
Returns the value of thegossiprecord component.- Returns:
- the value of the
gossiprecord component
-
pubKey
Returns the value of thepubKeyrecord component.- Returns:
- the value of the
pubKeyrecord component
-
rpc
Returns the value of therpcrecord component.- Returns:
- the value of the
rpcrecord component
-
tpu
Returns the value of thetpurecord component.- Returns:
- the value of the
tpurecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-