public class NodeId extends Object implements ElementId, Distributable, Serializable, Comparable<NodeId>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeId other) |
boolean |
equals(Object obj) |
int |
hashCode() |
IpAddress |
ip()
Returns the IPv4 or IPv6 address associated with this node.
|
SegmentId |
segmentId()
Returns the segment ID associated with this node.
|
String |
toString() |
static NodeId |
valueOf(IpAddress ip,
SegmentId segmentId)
Returns the value of the given IP address and segment ID as a node ID.
|
public static NodeId valueOf(IpAddress ip, SegmentId segmentId)
ip
- the given IP addresssegmentId
- the given segment IDpublic IpAddress ip()
public SegmentId segmentId()
public int compareTo(NodeId other)
compareTo
in interface Comparable<NodeId>
Copyright © 2015. All Rights Reserved.