public class TFloatByteHashMap extends TFloatByteHashimplements TFloatByteMap , Externalizable
| Modifier and Type | Class and Description |
|---|---|
protected class |
TFloatByteHashMap
a view onto the keys of the map.
|
protected class |
TFloatByteHashMap
a view onto the values of the map.
|
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
_values
the values of the map
|
_set, consumeFreeSlot, no_entry_key, no_entry_value_states, FREE, FULL, REMOVED_autoCompactionFactor, _autoCompactRemovesRemaining, _autoCompactTemporaryDisable, _free, _loadFactor, _maxSize, _size, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
TFloatByteHashMap()
Creates a new
TFloatByteHashMap instance with the default capacity and load factor.
|
TFloatByteHashMap(float[] keys, byte[] values)
Creates a new
TFloatByteHashMap instance containing all of the entries in the map passed in.
|
TFloatByteHashMap(int initialCapacity)
Creates a new
TFloatByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TFloatByteHashMap(int initialCapacity, float loadFactor)
Creates a new
TFloatByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
|
TFloatByteHashMap(int initialCapacity, float loadFactor, float noEntryKey, byte noEntryValue)
Creates a new
TFloatByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
|
TFloatByteHashMap(TFloatByteMap
Creates a new
TFloatByteHashMap instance containing all of the entries in the map passed in.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
adjustOrPutValue(float key, byte adjust_amount, byte put_amount)
|
boolean |
adjustValue(float key, byte amount)
|
void |
clear()
|
boolean |
containsKey(float key)
|
boolean |
containsValue(byte val)
|
boolean |
equals(Object
|
boolean |
forEachEntry(TFloatByteProcedure
|
boolean |
forEachKey(TFloatProcedure
|
boolean |
forEachValue(TByteProcedure
|
byte |
get(float key)
|
int |
hashCode()
|
boolean |
increment(float key)
|
boolean |
isEmpty()
|
TFloatByteIterator |
iterator()
|
float[] |
keys()
|
float[] |
keys(float[] array)
|
TFloatSet |
keySet()
|
byte |
put(float key, byte value)
|
void |
putAll(Map
|
void |
putAll(TFloatByteMap
|
byte |
putIfAbsent(float key, byte value)
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
byte |
remove(float key)
|
protected void |
removeAt(int index)
|
boolean |
retainEntries(TFloatByteProcedure
|
protected int |
setUp(int initialCapacity)
initializes the hashtable to a prime capacity which is at least
initialCapacity + 1.
|
String |
toString()
|
void |
transformValues(TByteFunction
|
TByteCollection |
valueCollection()
|
byte[] |
values()
|
byte[] |
values(byte[] array)
|
void |
writeExternal(ObjectOutput
|
contains, forEach, getNoEntryKey, getNoEntryValue, index, insertKey, XinsertKeycapacitycalculateGrownCapacity, compact, computeMaxSize, computeNextAutoCompactionAmount, ensureCapacity, getAutoCompactionFactor, postInsertHook, reenableAutoCompaction, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNoEntryKey, getNoEntryValue, sizepublic TFloatByteHashMap()
TFloatByteHashMap instance with the default capacity and load factor.
public TFloatByteHashMap(int initialCapacity)
TFloatByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TFloatByteHashMap(int initialCapacity,
float loadFactor)
TFloatByteHashMap 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 TFloatByteHashMap(int initialCapacity,
float loadFactor,
float noEntryKey,
byte noEntryValue)
TFloatByteHashMap 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
noEntryKey - a
float value that represents
null for the Key set.
noEntryValue - a
byte value that represents
null for the Value set.
public TFloatByteHashMap(float[] keys,
byte[] values)
TFloatByteHashMap instance containing all of the entries in the map passed in.
keys - a
float array containing the keys for the matching values.
values - a
byte array containing the values.
public TFloatByteHashMap(TFloatByteMapmap)
TFloatByteHashMap instance containing all of the entries in the map passed in.
map - a
TFloatByteMap that will be duplicated.
protected int setUp(int initialCapacity)
setUp in class
TFloatByteHash
initialCapacity - an
int value
protected void rehash(int newCapacity)
public byte put(float key,
byte value)
public byte putIfAbsent(float key,
byte value)
public void putAll(TFloatByteMapmap)
public byte get(float key)
public void clear()
public boolean isEmpty()
public byte remove(float key)
protected void removeAt(int index)
public TFloatSetkeySet()
public float[] keys()
public float[] keys(float[] array)
public TByteCollectionvalueCollection()
public byte[] values()
public byte[] values(byte[] array)
public boolean containsValue(byte val)
public boolean containsKey(float key)
public TFloatByteIteratoriterator()
public boolean forEachKey(TFloatProcedureprocedure)
public boolean forEachValue(TByteProcedureprocedure)
public boolean forEachEntry(TFloatByteProcedureprocedure)
public void transformValues(TByteFunctionfunction)
public boolean retainEntries(TFloatByteProcedureprocedure)
public boolean increment(float key)
public boolean adjustValue(float key,
byte amount)
public byte adjustOrPutValue(float key,
byte adjust_amount,
byte put_amount)
public boolean equals(Objectother)
public int hashCode()
public StringtoString()
public void writeExternal(ObjectOutputout) throws IOException
writeExternal in interface
Externalizable
writeExternal in class
TFloatByteHash
IOException
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
readExternal in class
TFloatByteHash
IOException
ClassNotFoundException