public static interface ShardedMap.CountedMap<K,V>
| Modifier and Type | Method and Description |
|---|---|
K |
getKey(long index)
Get the key at the given index.
|
long |
getKeyIndex(K key)
Get the index of the given key in the map.
|
K getKey(long index)
index - the indexlong getKeyIndex(K key)
If the key was found, the returned value is the index in the key array. If not found, the returned value is negative, where -1 means the provided key is smaller than any keys. See also Arrays.binarySearch.
key - the key