|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public static interface ShardedMap.CountedMap<K,V>
A map that can efficiently return the index of a key, and the key at a given index.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
K getKey(long index)
index - the index
long 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||