IntObjectHashMap, IntLongHashMap, IntIntHashMap, LongLongHashMap, LongIntHashMap
| Modifier and Type | Class and Description |
|---|---|
| public static class | LongObjectHashMap.
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 Object | |
| private final float | |
| private int | |
| private int | |
| private LongObjectHashMap. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | LongObjectHashMap(final float loadFactor, final int table_size, final int size, final int mask, final int capacity, final int threshold, final Object 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 Object | get(final long key)
Returns the value to which the specified key is mapped,
or |
| private static Method | |
| public Object | getKeyNotFoundValue()
Returns the value which is returned if no value has been found for the specified key. |
| public Iterator | |
| public Object | |
| public void | putAll(final LongObjectHashMap source)
Copies all of the mappings from the specified map to this map. |
| public Object | |
| public Object | 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<LongObjectHashMap. | |
| equalsMethod | back to summary |
|---|---|
| private static final Method equalsMethod | |
| isPrimitive | back to summary |
|---|---|
| private static final boolean isPrimitive | |
| keyNotFoundValue | back to summary |
|---|---|
| private Object 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 LongObjectHashMap. | |
| threshold | back to summary |
|---|---|
| private int threshold | |
| LongObjectHashMap | back to summary |
|---|---|
| public LongObjectHashMap() | |
| LongObjectHashMap | back to summary |
|---|---|
| public LongObjectHashMap(final int initialCapacity) | |
| LongObjectHashMap | back to summary |
|---|---|
| public LongObjectHashMap(final int initialCapacity, final float loadFactor) | |
| LongObjectHashMap | back to summary |
|---|---|
| private LongObjectHashMap(final float loadFactor, final int table_size, final int size, final int mask, final int capacity, final int threshold, final Object 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 Object value) | |
| get | back to summary |
|---|---|
| public Object 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 Object 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 Object put(final long key, final Object 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 LongObjectHashMap source) Copies all of the mappings from the specified map to this map. | |
| remove | back to summary |
|---|---|
| public Object remove(final long key) Removes the key-value mapping from this map.
Returns the previously mapped value or | |
| setKeyNotFoundValue | back to summary |
|---|---|
| public Object setKeyNotFoundValue(final Object 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 LongObjectHashMap. | |
| public Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public Object | |
| 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 LongObjectHashMap. | |
| value | back to summary |
|---|---|
| public Object value | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(final long k, final Object v, final LongObjectHashMap. | |
| getKey | back to summary |
|---|---|
| public long getKey() Returns the key of this entry. | |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns the value of this entry. | |
| setValue | back to summary |
|---|---|
| public void setValue(final Object 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<LongObjectHashMap. | |
| m1 | back to summary |
|---|---|
| pack-priv Method m1 | |
| EntryCM | back to summary |
|---|---|
| pack-priv EntryCM() | |
| Modifier and Type | Field and Description |
|---|---|
| private final LongObjectHashMap. | |
| private int | |
| private LongObjectHashMap. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public LongObjectHashMap. | |
| public void | remove()
Overrides default java. |
| entries | back to summary |
|---|---|
| private final LongObjectHashMap. | |
| index | back to summary |
|---|---|
| private int index | |
| next | back to summary |
|---|---|
| private LongObjectHashMap. | |
| EntryIterator | back to summary |
|---|---|
| private EntryIterator(final LongObjectHashMap. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public LongObjectHashMap. 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
| |