public class TLongByteHashMap extends TLongByteHashimplements TLongByteMap , Externalizable
| Modifier and Type | Class and Description |
|---|---|
protected class |
TLongByteHashMap
a view onto the keys of the map.
|
protected class |
TLongByteHashMap
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 |
|---|
TLongByteHashMap()
Creates a new
TLongByteHashMap instance with the default capacity and load factor.
|
TLongByteHashMap(int initialCapacity)
Creates a new
TLongByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
|
TLongByteHashMap(int initialCapacity, float loadFactor)
Creates a new
TLongByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
|
TLongByteHashMap(int initialCapacity, float loadFactor, long noEntryKey, byte noEntryValue)
Creates a new
TLongByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the specified load factor.
|
TLongByteHashMap(long[] keys, byte[] values)
Creates a new
TLongByteHashMap instance containing all of the entries in the map passed in.
|
TLongByteHashMap(TLongByteMap
Creates a new
TLongByteHashMap instance containing all of the entries in the map passed in.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
adjustOrPutValue(long key, byte adjust_amount, byte put_amount)
|
boolean |
adjustValue(long key, byte amount)
|
void |
clear()
|
boolean |
containsKey(long key)
|
boolean |
containsValue(byte val)
|
boolean |
equals(Object
|
boolean |
forEachEntry(TLongByteProcedure
|
boolean |
forEachKey(TLongProcedure
|
boolean |
forEachValue(TByteProcedure
|
byte |
get(long key)
|
int |
hashCode()
|
boolean |
increment(long key)
|
boolean |
isEmpty()
|
TLongByteIterator |
iterator()
|
long[] |
keys()
|
long[] |
keys(long[] array)
|
TLongSet |
keySet()
|
byte |
put(long key, byte value)
|
void |
putAll(Map
|
void |
putAll(TLongByteMap
|
byte |
putIfAbsent(long key, byte value)
|
void |
readExternal(ObjectInput
|
protected void |
rehash(int newCapacity)
|
byte |
remove(long key)
|
protected void |
removeAt(int index)
|
boolean |
retainEntries(TLongByteProcedure
|
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 TLongByteHashMap()
TLongByteHashMap instance with the default capacity and load factor.
public TLongByteHashMap(int initialCapacity)
TLongByteHashMap instance with a prime capacity equal to or greater than
initialCapacity and with the default load factor.
initialCapacity - an
int value
public TLongByteHashMap(int initialCapacity,
float loadFactor)
TLongByteHashMap 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 TLongByteHashMap(int initialCapacity,
float loadFactor,
long noEntryKey,
byte noEntryValue)
TLongByteHashMap 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
long value that represents
null for the Key set.
noEntryValue - a
byte value that represents
null for the Value set.
public TLongByteHashMap(long[] keys,
byte[] values)
TLongByteHashMap instance containing all of the entries in the map passed in.
keys - a
long array containing the keys for the matching values.
values - a
byte array containing the values.
public TLongByteHashMap(TLongByteMapmap)
TLongByteHashMap instance containing all of the entries in the map passed in.
map - a
TLongByteMap that will be duplicated.
protected int setUp(int initialCapacity)
setUp in class
TLongByteHash
initialCapacity - an
int value
protected void rehash(int newCapacity)
public byte put(long key,
byte value)
public byte putIfAbsent(long key,
byte value)
public void putAll(TLongByteMapmap)
public byte get(long key)
public void clear()
public boolean isEmpty()
public byte remove(long key)
protected void removeAt(int index)
public TLongSetkeySet()
public long[] keys()
public long[] keys(long[] array)
public TByteCollectionvalueCollection()
public byte[] values()
public byte[] values(byte[] array)
public boolean containsValue(byte val)
public boolean containsKey(long key)
public TLongByteIteratoriterator()
public boolean forEachKey(TLongProcedureprocedure)
public boolean forEachValue(TByteProcedureprocedure)
public boolean forEachEntry(TLongByteProcedureprocedure)
public void transformValues(TByteFunctionfunction)
public boolean retainEntries(TLongByteProcedureprocedure)
public boolean increment(long key)
public boolean adjustValue(long key,
byte amount)
public byte adjustOrPutValue(long 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
TLongByteHash
IOException
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
readExternal in class
TLongByteHash
IOException
ClassNotFoundException