public class ShardedKey<K>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
K |
getKey() |
int |
getShardNumber() |
int |
hashCode() |
static <K> ShardedKey<K> |
of(K key,
int shardNumber) |
java.lang.String |
toString() |
public static <K> ShardedKey<K> of(K key, int shardNumber)
public K getKey()
public int getShardNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object