public class NodeId extends AbstractIdentifier<String> implements Comparable<NodeId>
| Constructor and Description |
|---|
NodeId(String id)
Creates a new cluster node identifier from the specified string.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeId |
anonymous()
Creates a new cluster node identifier from the specified string.
|
int |
compareTo(NodeId that) |
boolean |
equals(Object object)
Compares two device key identifiers for equality.
|
static NodeId |
from(String id)
Creates a new cluster node identifier from the specified string.
|
int |
hashCode()
Returns the hashcode of the identifier.
|
id, toStringpublic NodeId(String id)
id - string identifierpublic static NodeId anonymous()
public static NodeId from(String id)
id - string identifierpublic int hashCode()
AbstractIdentifierhashCode in class AbstractIdentifier<String>public boolean equals(Object object)
AbstractIdentifierequals in class AbstractIdentifier<String>object - to compare againstpublic int compareTo(NodeId that)
compareTo in interface Comparable<NodeId>Copyright © 2013–2018. All rights reserved.