| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getKey()
Node key, uniquely identifies node.
|
int |
hashCode() |
static SimpleNode |
of(java.lang.String value)
Factory method to create instance of the class.
|
java.lang.String |
toString() |
public static SimpleNode of(java.lang.String value)
value - - string value represented by the nodepublic java.lang.String getKey()
NodeConsistentHash for load distribution.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object