public interface IdMap extends IdCollection
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(long key)
Checks if the map contains a given key
|
long |
get(long key)
Retrieves the value for a given key
|
IdMapIterator |
iterator() |
long[] |
keys() |
long |
put(long key,
long value)
Puts a key-value pair into the map.
|
long |
remove(long key)
Removes a key-value pair from the map
|
long[] |
values() |
clear, size
long put(long key, long value)
key
- the key to insertvalue
- the value to insertboolean containsKey(long key)
key
- the keylong remove(long key)
key
- the key of the pair to removelong get(long key)
key
- the keylong[] keys()
long[] values()
IdMapIterator iterator()