public final class NodeID extends Object implements Comparable, Serializable
Constructor and Description |
---|
NodeID(long long1,
long long2,
int int1,
String nodeName,
NodeAddress nodeAddress)
Constructor taking the full details for a remote Node connection
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object arg0)
Compares this NodeID with another NodeID.
|
boolean |
equals(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(String str)
Converts a string representation of a NodeID back to a NodeID object
|
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, 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(Object arg0)
compareTo
in interface Comparable
arg0
- public boolean equals(Object arg0)
public int hashCode()
public String toString()
public NodeAddress getNodeAddress()
Copyright © 1996–2015. All rights reserved.