org.elasticsearch.util.trove
Class ExtTIntIntHashMap
java.lang.Object
org.elasticsearch.util.gnu.trove.THash
org.elasticsearch.util.gnu.trove.TPrimitiveHash
org.elasticsearch.util.gnu.trove.TIntHash
org.elasticsearch.util.gnu.trove.TIntIntHashMap
org.elasticsearch.util.trove.ExtTIntIntHashMap
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, TIntHashingStrategy
public class ExtTIntIntHashMap
- extends TIntIntHashMap
- See Also:
- Serialized Form
Methods inherited from class org.elasticsearch.util.gnu.trove.TIntIntHashMap |
adjustOrPutValue, adjustValue, clear, clone, containsKey, containsValue, equals, forEachEntry, forEachKey, forEachValue, getValues, hashCode, increment, iterator, keys, keys, put, putAll, putIfAbsent, readExternal, rehash, remove, removeAt, retainEntries, setUp, toString, transformValues, writeExternal |
Methods inherited from class org.elasticsearch.util.gnu.trove.THash |
calculateGrownCapacity, compact, ensureCapacity, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSize |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ExtTIntIntHashMap
public ExtTIntIntHashMap()
ExtTIntIntHashMap
public ExtTIntIntHashMap(int initialCapacity)
ExtTIntIntHashMap
public ExtTIntIntHashMap(int initialCapacity,
float loadFactor)
ExtTIntIntHashMap
public ExtTIntIntHashMap(TIntHashingStrategy strategy)
ExtTIntIntHashMap
public ExtTIntIntHashMap(int initialCapacity,
TIntHashingStrategy strategy)
ExtTIntIntHashMap
public ExtTIntIntHashMap(int initialCapacity,
float loadFactor,
TIntHashingStrategy strategy)
defaultReturnValue
public ExtTIntIntHashMap defaultReturnValue(int defaultReturnValue)
get
public int get(int key)
- Description copied from class:
TIntIntHashMap
- retrieves the value for key
- Overrides:
get
in class TIntIntHashMap
- Parameters:
key
- an int
value
- Returns:
- the value of key or (int)0 if no such mapping exists.