public class TFloatObjectHashMap<V> extends TFloatHashimplements TFloatObjectMap <V>, Externalizable
| Modifier and Type | Class and Description |
|---|---|
protected class |
TFloatObjectHashMap
a view onto the values of the map.
|
| Modifier and Type | Field and Description |
|---|---|
protected V[] |
_values
the values of the map
|
protected float |
no_entry_key
the value that represents null in the key set.
|
_set, consumeFreeSlot, no_entry_value_states, FREE, FULL, REMOVED_autoCompactionFactor, _autoCompactRemovesRemaining, _autoCompactTemporaryDisable, _free, _loadFactor, _maxSize, _size, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
TFloatObjectHashMap()
Creates a new
TFloatObjectHashMap instance with the default capacity and load factor.
|
TFloatObjectHashMap(int initialCapacity)
Creates a new
TFloatObjectHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TFloatObjectHashMap(int initialCapacity, float loadFactor)
Creates a new
TFloatObjectHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
|
TFloatObjectHashMap(int initialCapacity, float loadFactor, float noEntryKey)
Creates a new
TFloatObjectHashMap instance with a prime value at or near the specified capacity and load factor.
|
TFloatObjectHashMap(TFloatObjectMap
Creates a new
TFloatObjectHashMap that contains the entries in the map passed to it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
|
boolean |
containsKey(float key)
|
boolean |
containsValue(Object
|
boolean |
equals(Object
|
boolean |
forEachEntry(TFloatObjectProcedure
|
boolean |
forEachKey(TFloatProcedure
|
boolean |
forEachValue(TObjectProcedure
|
V |
get(float key)
|
float |
getNoEntryKey()
|
int |
hashCode()
|
TFloatObjectIterator |
iterator()
|
float[] |
keys()
|
float[] |
keys(float[] dest)
|
TFloatSet |
keySet()
|
V |
put(float key, V value)
|
void |
putAll(Map
|
void |
putAll(TFloatObjectMap
|
V |
putIfAbsent(float key, V value)
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
V |
remove(float key)
|
protected void |
removeAt(int index)
|
boolean |
retainEntries(TFloatObjectProcedure
|
protected int |
setUp(int initialCapacity)
|
String |
toString()
|
void |
transformValues(TObjectFunction
|
Collection |
valueCollection()
|
Object |
values()
|
V[] |
values(V[] dest)
|
void |
writeExternal(ObjectOutput
|
contains, forEach, getNoEntryValue, index, insertKeycapacitycalculateGrownCapacity, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, fastCeil, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, saturatedCast, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisEmpty, sizeprotected transient V[] _values
protected float no_entry_key
public TFloatObjectHashMap()
TFloatObjectHashMap instance with the default capacity and load factor.
public TFloatObjectHashMap(int initialCapacity)
TFloatObjectHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TFloatObjectHashMap(int initialCapacity,
float loadFactor)
TFloatObjectHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
initialCapacity - an
int value
loadFactor - a
float value
public TFloatObjectHashMap(int initialCapacity,
float loadFactor,
float noEntryKey)
TFloatObjectHashMap instance with a prime value at or near the specified capacity and load factor.
initialCapacity - used to find a prime capacity for the table.
loadFactor - used to calculate the threshold over which rehashing takes place.
noEntryKey - the value used to represent null in the key set.
public TFloatObjectHashMap(TFloatObjectMap<? extends V> map)
TFloatObjectHashMap that contains the entries in the map passed to it.
map - the
TFloatObjectMap to be copied.
protected int setUp(int initialCapacity)
protected void rehash(int newCapacity)
public float getNoEntryKey()
public boolean containsKey(float key)
public boolean containsValue(Objectval)
public V get(float key)
public V remove(float key)
protected void removeAt(int index)
public void putAll(TFloatObjectMap<? extends V> map)
public void clear()
public TFloatSetkeySet()
public float[] keys()
public float[] keys(float[] dest)
public Collection<V> valueCollection()
public Object[] values()
public TFloatObjectIterator<V> iterator()
public boolean forEachKey(TFloatProcedureprocedure)
public boolean forEachValue(TObjectProcedure<? super V> procedure)
public boolean forEachEntry(TFloatObjectProcedure<? super V> procedure)
public boolean retainEntries(TFloatObjectProcedure<? super V> procedure)
public void transformValues(TObjectFunction<V ,V> function)
public boolean equals(Objectother)
public int hashCode()
public void writeExternal(ObjectOutputout) throws IOException
writeExternal in interface
Externalizable
writeExternal in class
THash
IOException
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
readExternal in class
THash
IOException
ClassNotFoundException
public StringtoString()