Aracılığıyla paylaş


NodeId Class

  • java.lang.Object
    • Comparable<NodeId>
      • system.fabric.NodeId

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:

low - The low order component of the system.fabric.NodeId object.
high - The high order component of the system.fabric.NodeId object.

NodeId

public NodeId(String low, String high)

Initializes a new system.fabric.NodeId object, with the specified high and low order components.

Parameters:

low - The low order component of the system.fabric.NodeId object.
high - The high order component of the system.fabric.NodeId object.

Method Details

compareTo

public int compareTo(NodeId o)

Compares this system.fabric.NodeId instance with another instance.

Parameters:

o

getHigh

public BigInteger getHigh()

The high order component of the system.fabric.NodeId object.

Returns:

Returns BigInteger.

getLow

public BigInteger getLow()

The low order component of the system.fabric.NodeId object.

Returns:

Returns BigInteger.

toString

public String toString()

Prints low order component and high order component of the NodeId.

Applies to