org.elasticsearch.util.trove
Class ExtTObjectFloatHashMap<T>

java.lang.Object
  extended by org.elasticsearch.util.gnu.trove.THash
      extended by org.elasticsearch.util.gnu.trove.TObjectHash<K>
          extended by org.elasticsearch.util.gnu.trove.TObjectFloatHashMap<T>
              extended by org.elasticsearch.util.trove.ExtTObjectFloatHashMap<T>
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, TObjectHashingStrategy<T>

public class ExtTObjectFloatHashMap<T>
extends TObjectFloatHashMap<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.elasticsearch.util.gnu.trove.TObjectFloatHashMap
_values
 
Fields inherited from class org.elasticsearch.util.gnu.trove.TObjectHash
_hashingStrategy, _set, FREE, REMOVED
 
Fields inherited from class org.elasticsearch.util.gnu.trove.THash
_autoCompactionFactor, _autoCompactRemovesRemaining, _free, _loadFactor, _maxSize, _size, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
 
Constructor Summary
ExtTObjectFloatHashMap()
           
ExtTObjectFloatHashMap(int initialCapacity)
           
ExtTObjectFloatHashMap(int initialCapacity, float loadFactor)
           
ExtTObjectFloatHashMap(int initialCapacity, float loadFactor, TObjectHashingStrategy<T> ttObjectHashingStrategy)
           
ExtTObjectFloatHashMap(int initialCapacity, TObjectHashingStrategy<T> ttObjectHashingStrategy)
           
ExtTObjectFloatHashMap(TObjectHashingStrategy<T> ttObjectHashingStrategy)
           
 
Method Summary
 ExtTObjectFloatHashMap<T> defaultReturnValue(float defaultReturnValue)
           
 float get(T key)
          retrieves the value for key
 
Methods inherited from class org.elasticsearch.util.gnu.trove.TObjectFloatHashMap
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.TObjectHash
capacity, computeHashCode, contains, equals, forEach, index, insertionIndex, throwObjectContractViolation
 
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
 

Constructor Detail

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap()

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap(int initialCapacity)

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap(int initialCapacity,
                              float loadFactor)

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap(TObjectHashingStrategy<T> ttObjectHashingStrategy)

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap(int initialCapacity,
                              TObjectHashingStrategy<T> ttObjectHashingStrategy)

ExtTObjectFloatHashMap

public ExtTObjectFloatHashMap(int initialCapacity,
                              float loadFactor,
                              TObjectHashingStrategy<T> ttObjectHashingStrategy)
Method Detail

defaultReturnValue

public ExtTObjectFloatHashMap<T> defaultReturnValue(float defaultReturnValue)

get

public float get(T key)
Description copied from class: TObjectFloatHashMap
retrieves the value for key

Overrides:
get in class TObjectFloatHashMap<T>
Parameters:
key - an Object value
Returns:
the value of key or (float)0 if no such mapping exists.