| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract class | Int2LongHashMap.AbstractIterator
Base iterator implementation. |
| public class | Int2LongHashMap.EntryIterator
Iterator over entries which supports access to unboxed keys and values. |
| public class | Int2LongHashMap.EntrySet
Set of entries which supports optionally cached iterators to avoid allocation. |
| public class | Int2LongHashMap.KeyIterator
Iterator over keys which supports access to unboxed keys via |
| public class | Int2LongHashMap.KeySet
Set of keys which supports optional cached iterators to avoid allocation. |
| public class | Int2LongHashMap.ValueCollection
Collection of values which supports optionally cached iterators to avoid allocation. |
| public class | Int2LongHashMap.ValueIterator
Iterator over values which supports access to unboxed values. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final float | |
| private long[] | |
| private Int2LongHashMap. | |
| private Int2LongHashMap. | |
| private final float | |
| pack-priv static final int | |
| private final long | |
| private int | |
| private static final long | |
| private final boolean | |
| private int | |
| private Int2LongHashMap. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Int2LongHashMap(final int
for the map to override initialCapacity, final float MIN_CAPACITYfor the map to override loadFactor, final long DEFAULT_LOAD_FACTOR.for the map that represents null. missingValue)
|
| public | Int2LongHashMap(final int
for the map to override initialCapacity, final float MIN_CAPACITYfor the map to override loadFactor, final long DEFAULT_LOAD_FACTOR.for the map that represents null. missingValue, final boolean should allocation be avoided by caching iterators and map entries. shouldAvoidAllocation)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the total capacity for the map.Get the total capacity for the map to which the load factor will be a fraction of. |
| private void | |
| public void | clear()
Implements java. |
| public void | compact()
Compact the backing arrays by rehashing with a capacity just larger than current size and giving consideration to the load factor. |
| private void | |
| public long | Returns: the value if found otherwise the missing value.to search on. key, final IntToLongFunction to provide a value if the get returns null. mappingFunction)Primitive specialised version of |
| public boolean | Returns: true if the map contains key as a key, false otherwise.the key to check. key)Int primitive specialised containsKey. |
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | Returns: true if contained otherwise value.to be tested against contained values. value)Does the map contain the value. |
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Int2LongHashMap. | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(final Object
object to be compared for equality with this map o)Overrides java. Implements java. |
| private static int | |
| private static int | |
| public long | Returns: value associated with the key ormissingValue() if key is not found in the
map.lookup key. key)Get a value using provided key avoiding boxing. |
| public Long | get(final Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public int | hashCode()
Overrides java. Implements java. |
| private void | |
| public boolean | |
| public Int2LongHashMap. | |
| public float | Returns: the load factor applied for resize operations.Get the load factor applied for resize operations. |
| public long | |
| public long | |
| public long | Returns: value to be used as a null marker in the map.The value to be used as a null marker in the map. |
| private static int | |
| public long | Returns: previous value associated with the key, ormissingValue() if none foundlookup key key, final long new value, must not be value)missingValue()Implements java. |
| public Long | put(final Integer
key with which the specified value is to be associated key, final Long value to be associated with the specified key value)Implements java. |
| public void | putAll(final Map<? extends Integer, ? extends Long>
mappings to be stored in this map map)Implements java. |
| private void | |
| public Long | remove(final Object
key whose mapping is to be removed from the map key)Implements java. |
| public long | Returns: removed value ormissingValue() if key was not found in the map.whose mapping is to be removed from the map. key)Remove value from the map using given key avoiding boxing. |
| public long | Returns: the previous value associated with the specified key, ormissingValue() if
there was no mapping for the key.key with which the specified value is associated key, final long value to be associated with the specified key value)Overrides default java. replace(Object, Object)
|
| public boolean | Returns: true if the value was replacedkey with which the specified value is associated key, final long value expected to be associated with the specified key oldValue, final long value to be associated with the specified key newValue)Overrides default java. replace(Object, Object, Object)
|
| public int | Returns: the threshold when the map will resize.Get the actual threshold which when reached the map will resize. |
| public int | |
| public String | |
| private static void | |
| private Long | |
| public Int2LongHashMap. | values()
Implements java. Collection view of the values contained in this map.
|