org.elasticsearch.util.trove
Class ExtTObjectIntHasMap<T>
java.lang.Object
org.elasticsearch.util.gnu.trove.THash
org.elasticsearch.util.gnu.trove.TObjectHash<K>
org.elasticsearch.util.gnu.trove.TObjectIntHashMap<T>
org.elasticsearch.util.trove.ExtTObjectIntHasMap<T>
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, TObjectHashingStrategy<T>
public class ExtTObjectIntHasMap<T>
- extends TObjectIntHashMap<T>
- See Also:
- Serialized Form
Methods inherited from class org.elasticsearch.util.gnu.trove.TObjectIntHashMap |
adjustOrPutValue, adjustValue, clear, clone, containsKey, containsValue, equals, forEachEntry, forEachKey, forEachValue, getValues, 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, hashCode, notify, notifyAll, wait, wait, wait |
ExtTObjectIntHasMap
public ExtTObjectIntHasMap()
ExtTObjectIntHasMap
public ExtTObjectIntHasMap(int initialCapacity)
ExtTObjectIntHasMap
public ExtTObjectIntHasMap(int initialCapacity,
float loadFactor)
ExtTObjectIntHasMap
public ExtTObjectIntHasMap(TObjectHashingStrategy<T> ttObjectHashingStrategy)
ExtTObjectIntHasMap
public ExtTObjectIntHasMap(int initialCapacity,
TObjectHashingStrategy<T> ttObjectHashingStrategy)
ExtTObjectIntHasMap
public ExtTObjectIntHasMap(int initialCapacity,
float loadFactor,
TObjectHashingStrategy<T> ttObjectHashingStrategy)
defaultReturnValue
public ExtTObjectIntHasMap<T> defaultReturnValue(int defaultReturnValue)
get
public int get(T key)
- Description copied from class:
TObjectIntHashMap
- retrieves the value for key
- Overrides:
get
in class TObjectIntHashMap<T>
- Parameters:
key
- an Object
value
- Returns:
- the value of key or (int)0 if no such mapping exists.