NodeId Class
- java.
lang. Object - Comparable<NodeId>
- system.
fabric. NodeId
- system.
public class NodeId
Class to encapsulate a node ID
Constructor Summary
Constructor | Description |
---|---|
NodeId(BigInteger low, BigInteger high) |
Initializes a new system.fabric.NodeId object, with the specified high and low order components. |
NodeId(String low, String high) |
Initializes a new system.fabric.NodeId object, with the specified high and low order components. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeId o)
Compares this system.fabric.NodeId instance with another instance. |
BigInteger |
getHigh()
The high order component of the system.fabric.NodeId object. |
BigInteger |
getLow()
The low order component of the system.fabric.NodeId object. |
String |
toString()
Prints low order component and high order component of the NodeId. |
Constructor Details
NodeId
public NodeId(BigInteger low, BigInteger high)
Initializes a new system.fabric.NodeId object, with the specified high and low order components.
Parameters:
NodeId
public NodeId(String low, String high)
Initializes a new system.fabric.NodeId object, with the specified high and low order components.
Parameters:
Method Details
compareTo
public int compareTo(NodeId o)
Compares this system.fabric.NodeId instance with another instance.
Parameters:
getHigh
public BigInteger getHigh()
The high order component of the system.fabric.NodeId object.
Returns:
getLow
public BigInteger getLow()
The low order component of the system.fabric.NodeId object.
Returns:
toString
public String toString()
Prints low order component and high order component of the NodeId.