public final class NodeID
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable
| Constructor and Description |
|---|
NodeID(long long1,
long long2,
int int1,
java.lang.String nodeName,
NodeAddress nodeAddress)
Constructor taking the full details for a remote Node connection
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object arg0)
Compares this NodeID with another NodeID.
|
boolean |
equals(java.lang.Object arg0)
Checks if the given object is equal to this NodeID
|
NodeAddress |
getNodeAddress()
Gets the NodeAddress part of the NodeID
|
int |
hashCode()
Returns the hashCode for this object
|
static NodeID |
parse(java.lang.String str)
Converts a string representation of a NodeID back to a NodeID object
|
java.lang.String |
toString()
Converts the NodeID into a string for communication with other implementations, or for display purposes.
|
public NodeID(long long1,
long long2,
int int1,
java.lang.String nodeName,
NodeAddress nodeAddress)
long1 - The time component of the remote Nodelong2 - The memory component of the remote Nodeint1 - The hashCode component of the remote NodenodeName - The name component of the remote NodenodeAddress - The NodeAddress component of the remote Nodepublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparablearg0 - public boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectarg0 - public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic NodeAddress getNodeAddress()
public static NodeID parse(java.lang.String str)
str - The string version of a NodeIDCopyright © 1996–2019. All rights reserved.