public class ByteByteHashMap extends AbstractMutableByteValuesMap implements com.gs.collections.api.map.primitive.MutableByteByteMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableByteValuesMap.AbstractByteValuesCollection, AbstractMutableByteValuesMap.SentinelValues| Constructor and Description |
|---|
ByteByteHashMap() |
ByteByteHashMap(com.gs.collections.api.map.primitive.ByteByteMap map) |
ByteByteHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(byte key,
byte toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteByteMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteByteMap |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableByteIterator |
byteIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(byte key) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteByteProcedure procedure) |
byte |
get(byte key) |
protected byte |
getEmptyValue() |
byte |
getIfAbsent(byte key,
byte ifAbsent) |
byte |
getIfAbsentPut(byte key,
byte value) |
byte |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
protected int |
getOccupiedWithData() |
byte |
getOrThrow(byte key) |
protected AbstractMutableByteValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected byte |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableByteSet |
keySet() |
com.gs.collections.api.LazyByteIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteBytePair> |
keyValuesView() |
static ByteByteHashMap |
newWithKeysValues(byte key1,
byte value1) |
static ByteByteHashMap |
newWithKeysValues(byte key1,
byte value1,
byte key2,
byte value2) |
static ByteByteHashMap |
newWithKeysValues(byte key1,
byte value1,
byte key2,
byte value2,
byte key3,
byte value3) |
static ByteByteHashMap |
newWithKeysValues(byte key1,
byte value1,
byte key2,
byte value2,
byte key3,
byte value3,
byte key4,
byte value4) |
void |
put(byte key,
byte value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteByteMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteByteHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteBytePredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
byte |
removeKeyIfAbsent(byte key,
byte value) |
ByteByteHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteBytePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteByteMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
byte |
updateValue(byte key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
com.gs.collections.api.collection.primitive.MutableByteCollection |
values() |
ByteByteHashMap |
withKeysValues(byte key1,
byte value1,
byte key2,
byte value2) |
ByteByteHashMap |
withKeysValues(byte key1,
byte value1,
byte key2,
byte value2,
byte key3,
byte value3) |
ByteByteHashMap |
withKeysValues(byte key1,
byte value1,
byte key2,
byte value2,
byte key3,
byte value3,
byte key4,
byte value4) |
ByteByteHashMap |
withKeyValue(byte key1,
byte value1) |
ByteByteHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteByteHashMap |
withoutKey(byte key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ByteByteHashMap()
public ByteByteHashMap(int initialCapacity)
public ByteByteHashMap(com.gs.collections.api.map.primitive.ByteByteMap map)
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1)
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1, byte key2, byte value2)
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3)
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3, byte key4, byte value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableByteValuesMapprotected AbstractMutableByteValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableByteValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableByteValuesMapprotected byte getEmptyValue()
getEmptyValue in class AbstractMutableByteValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableByteValuesMapprotected byte getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableByteValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteByteMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteByteMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteByteMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteByteMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractByteIterablepublic com.gs.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface com.gs.collections.api.ByteIterablebyteIterator in interface com.gs.collections.api.map.primitive.MutableByteValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.ByteIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableByteValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
byte value)
put in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic void putAll(com.gs.collections.api.map.primitive.ByteByteMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteByteMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte removeKeyIfAbsent(byte key,
byte value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte getIfAbsentPut(byte key,
byte value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic <P> byte getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte addToValue(byte key,
byte toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic byte updateValue(byte key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic ByteByteHashMap withKeyValue(byte key1, byte value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic ByteByteHashMap withKeysValues(byte key1, byte value1, byte key2, byte value2)
public ByteByteHashMap withKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3)
public ByteByteHashMap withKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3, byte key4, byte value4)
public ByteByteHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic ByteByteHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic com.gs.collections.api.map.primitive.MutableByteByteMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic com.gs.collections.api.map.primitive.MutableByteByteMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic com.gs.collections.api.map.primitive.ImmutableByteByteMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteByteMappublic byte get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteByteMappublic byte getIfAbsent(byte key,
byte ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteByteMappublic byte getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteByteMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteByteMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteByteMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteByteProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteByteMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteByteMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteBytePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteByteMappublic ByteByteHashMap select(com.gs.collections.api.block.predicate.primitive.ByteBytePredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteByteMapselect in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic ByteByteHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteBytePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteByteMapreject in interface com.gs.collections.api.map.primitive.MutableByteByteMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableByteValuesMappublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteByteMappublic com.gs.collections.api.collection.primitive.MutableByteCollection values()
values in interface com.gs.collections.api.map.primitive.ByteValuesMap