java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.collect.IntMap |
A memory-efficient map (dictionary) of int
primitives to int
primitives.
Additions, retrieval, updates are supported. Deletes are not supported.
All ints are valid keys and values. The value 0, however, may indicate an empty entry.
Note: hashCode()
and equals(Object)
are not overridden.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IntMap() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | clear() | ||||||||||
boolean |
containsKey(int key)
Determine if the key maps to an entry in the map.
| ||||||||||
int |
get(int key)
Retrieve a value associated to a key.
| ||||||||||
boolean | isEmpty() | ||||||||||
int |
put(int key, int val)
Add an entry.
| ||||||||||
int | size() | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Determine if the key maps to an entry in the map.
Retrieve a value associated to a key.
Add an entry.