IntObjectHashMap, IntLongHashMap, LongObjectHashMap, IntIntHashMap, LongIntHashMap
| Modifier and Type | Class and Description |
|---|---|
| public static class | LongLongHashMap.
An entry mapping a key to a value. |
| pack-priv static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final Constructor | |
| private static final Method | |
| private static final boolean | |
| private long | |
| private final float | |
| private int | |
| private int | |
| private LongLongHashMap. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | LongLongHashMap(final float loadFactor, final int table_size, final int size, final int mask, final int capacity, final int threshold, final long keyNotFoundValue)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | |
| public Object | clone()
Overrides java. Disclaimer If the value type doesn't implement |
| public boolean | |
| public boolean | |
| public long | get(final long key)
Returns the value to which the specified key is mapped,
or |
| private static Method | |
| public long | getKeyNotFoundValue()
Returns the value which is returned if no value has been found for the specified key. |
| public Iterator | |
| public long | |
| public void | |
| public long | |
| public long | Returns: the previous key not found valueSets the new key not found value. |
| public int | |
| public StringBuilder | Returns: StringBuilder instance with appended string information of this Entryif null, a new StringBuilder is created sb)
|
| public String |
| capacity | back to summary |
|---|---|
| private int capacity | |
| entryConstructor | back to summary |
|---|---|
| private static final Constructor<LongLongHashMap. | |
| equalsMethod | back to summary |
|---|---|
| private static final Method equalsMethod | |
| isPrimitive | back to summary |
|---|---|
| private static final boolean isPrimitive | |
| keyNotFoundValue | back to summary |
|---|---|
| private long keyNotFoundValue | |
| loadFactor | back to summary |
|---|---|
| private final float loadFactor | |
| mask | back to summary |
|---|---|
| private int mask | |
| size | back to summary |
|---|---|
| private int size | |
| table | back to summary |
|---|---|
| private LongLongHashMap. | |
| threshold | back to summary |
|---|---|
| private int threshold | |
| LongLongHashMap | back to summary |
|---|---|
| public LongLongHashMap() | |
| LongLongHashMap | back to summary |
|---|---|
| public LongLongHashMap(final int initialCapacity) | |
| LongLongHashMap | back to summary |
|---|---|
| public LongLongHashMap(final int initialCapacity, final float loadFactor) | |
| LongLongHashMap | back to summary |
|---|---|
| private LongLongHashMap(final float loadFactor, final int table_size, final int size, final int mask, final int capacity, final int threshold, final long keyNotFoundValue) | |
| capacity | back to summary |
|---|---|
| public int capacity() Returns the current capacity (buckets) in this map. | |
| clear | back to summary |
|---|---|
| public void clear() Clears the entire map. The size is 0 after this operation. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Disclaimer If the value type doesn't implement Note Due to private fields we cannot implement a copy constructor, sorry.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final long key) | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final long value) | |
| get | back to summary |
|---|---|
| public long get(final long key) Returns the value to which the specified key is mapped,
or | |
| getCloneMethod | back to summary |
|---|---|
| private static Method getCloneMethod(final Object obj) | |
| getKeyNotFoundValue | back to summary |
|---|---|
| public long getKeyNotFoundValue() Returns the value which is returned if no value has been found for the specified key. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns a new Note this Iterator does not yet support removal of elements.
| |
| put | back to summary |
|---|---|
| public long put(final long key, final long value) Maps the key to the specified value. If a mapping to this key already exists,
the previous value will be returned (otherwise | |
| putAll | back to summary |
|---|---|
| public void putAll(final LongLongHashMap source) Copies all of the mappings from the specified map to this map. | |
| remove | back to summary |
|---|---|
| public long remove(final long key) Removes the key-value mapping from this map.
Returns the previously mapped value or | |
| setKeyNotFoundValue | back to summary |
|---|---|
| public long setKeyNotFoundValue(final long newKeyNotFoundValue) Sets the new key not found value. For primitive types (int, long) the default is -1, for Object types, the default is null. | |
| size | back to summary |
|---|---|
| public int size() Returns the current number of key-value mappings in this map. | |
| toString | back to summary |
|---|---|
public StringBuilder toString(StringBuilder sb)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public final long | |
| pack-priv LongLongHashMap. | |
| public long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | |
| public void | |
| public StringBuilder | Returns: StringBuilder instance with appended string information of this Entryif null, a new StringBuilder is created sb)
|
| public String |
| key | back to summary |
|---|---|
| public final long key | |
| next | back to summary |
|---|---|
| pack-priv LongLongHashMap. | |
| value | back to summary |
|---|---|
| public long value | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(final long k, final long v, final LongLongHashMap. | |
| getKey | back to summary |
|---|---|
| public long getKey() Returns the key of this entry. | |
| getValue | back to summary |
|---|---|
| public long getValue() Returns the value of this entry. | |
| setValue | back to summary |
|---|---|
| public void setValue(final long value) Sets the value for this entry. | |
| toString | back to summary |
|---|---|
public StringBuilder toString(StringBuilder sb)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Constructor | |
| pack-priv Method |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| c | back to summary |
|---|---|
| pack-priv Constructor<LongLongHashMap. | |
| m1 | back to summary |
|---|---|
| pack-priv Method m1 | |
| EntryCM | back to summary |
|---|---|
| pack-priv EntryCM() | |
| Modifier and Type | Field and Description |
|---|---|
| private final LongLongHashMap. | |
| private int | |
| private LongLongHashMap. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public LongLongHashMap. | |
| public void | remove()
Overrides default java. |
| entries | back to summary |
|---|---|
| private final LongLongHashMap. | |
| index | back to summary |
|---|---|
| private int index | |
| next | back to summary |
|---|---|
| private LongLongHashMap. | |
| EntryIterator | back to summary |
|---|---|
| private EntryIterator(final LongLongHashMap. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public LongLongHashMap. Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |