| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final float | |
| private int | size
Number of entries currently in the map. |
| private LongMap. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if key is present in the map.the key to find. key)Whether |
| private static final <V> LongMap. | |
| public V | |
| private void | |
| private final int | |
| private void | |
| public V | Returns: prior value, or null.key to store key, V value under.new value. value)Put a new entry into the map |
| public V | Returns: old value of the key, ornull.key to remove from the map. key)Remove an entry from the map |
| growAt | back to summary |
|---|---|
| private int growAt | |
| LOAD_FACTOR | back to summary |
|---|---|
| private static final float LOAD_FACTOR | |
| size | back to summary |
|---|---|
| private int size Number of entries currently in the map. | |
| table | back to summary |
|---|---|
| private LongMap. | |
| LongMap | back to summary |
|---|---|
| public LongMap() Initialize an empty LongMap. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(long key) Whether
| |
| createArray | back to summary |
|---|---|
private static final <V> LongMap.
| |
| get | back to summary |
|---|---|
| public V get(long key) Get value for this
| |
| grow | back to summary |
|---|---|
| private void grow() | |
| index | back to summary |
|---|---|
| private final int index(long key) | |
| insert | back to summary |
|---|---|
| private void insert(LongMap. | |
| put | back to summary |
|---|---|
| public V put(long key, V value) Put a new entry into the map
| |
| remove | back to summary |
|---|---|
| public V remove(long key) Remove an entry from the map
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv LongMap. | |
| pack-priv V |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| key | back to summary |
|---|---|
| pack-priv final long key | |
| next | back to summary |
|---|---|
| pack-priv LongMap. | |
| value | back to summary |
|---|---|
| pack-priv V value | |
| Node | back to summary |
|---|---|
| pack-priv Node(long k, V v) | |