ints.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Object[] | |
| private int | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | IntMap(int
the initial capacity initialCapacity, final float the load factor loadFactor)Construct a new instance with the given initial capacity and load factor. |
| public | IntMap(final float
the load factor loadFactor)Construct a new instance with the given load factor and an initial capacity of 64. |
| public | IntMap(final int
the initial capacity initialCapacity)Construct a new instance with the given initial capacity and a load factor of |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public IntMap | |
| public int | Returns: the map value at the given key, or the value ofdefVal if it's not foundthe key key, int the value to return if the key is not found defVal)Get a value from the map. |
| public void | |
| private void | |
| public String | Returns: a string representationOverrides java. |
| count | back to summary |
|---|---|
| private int count | |
| keys | back to summary |
|---|---|
| private Object[] keys | |
| resizeCount | back to summary |
|---|---|
| private int resizeCount | |
| values | back to summary |
|---|---|
| private int[] values | |
| IntMap | back to summary |
|---|---|
| public IntMap(int initialCapacity, final float loadFactor) Construct a new instance with the given initial capacity and load factor.
| |
| IntMap | back to summary |
|---|---|
| public IntMap(final float loadFactor) Construct a new instance with the given load factor and an initial capacity of 64.
| |
| IntMap | back to summary |
|---|---|
| public IntMap(final int initialCapacity) Construct a new instance with the given initial capacity and a load factor of
| |
| IntMap | back to summary |
|---|---|
| public IntMap() Construct a new instance with an initial capacity of 64 and a load factor of | |
| clear | back to summary |
|---|---|
| public void clear() | |
| clone | back to summary |
|---|---|
| public IntMap Overrides java. Clone this map.
| |
| get | back to summary |
|---|---|
| public int get(T key, int defVal) Get a value from the map.
| |
| put | back to summary |
|---|---|
| public void put(T key, int value) Put a value into the map. Any previous mapping is discarded silently.
| |
| resize | back to summary |
|---|---|
| private void resize() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get a string summary representation of this map.
| |