public class IntByteHashMap extends AbstractMutableByteValuesMap implements com.gs.collections.api.map.primitive.MutableIntByteMap, java.io.Externalizable, MutableIntKeysMap
AbstractMutableByteValuesMap.AbstractByteValuesCollection, AbstractMutableByteValuesMap.SentinelValues| Constructor and Description |
|---|
IntByteHashMap() |
IntByteHashMap(int initialCapacity) |
IntByteHashMap(com.gs.collections.api.map.primitive.IntByteMap map) |
| Modifier and Type | Method and Description |
|---|---|
byte |
addToValue(int key,
byte toBeAdded) |
com.gs.collections.api.map.primitive.MutableIntByteMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableIntByteMap |
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(int 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.IntProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntByteProcedure procedure) |
byte |
get(int key) |
protected byte |
getEmptyValue() |
byte |
getIfAbsent(int key,
byte ifAbsent) |
byte |
getIfAbsentPut(int key,
byte value) |
byte |
getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function) |
<P> byte |
getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter) |
byte |
getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToByteFunction function) |
protected int |
getOccupiedWithData() |
byte |
getOrThrow(int 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.MutableIntSet |
keySet() |
com.gs.collections.api.LazyIntIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntBytePair> |
keyValuesView() |
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1) |
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2) |
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3) |
static IntByteHashMap |
newWithKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3,
int key4,
byte value4) |
void |
put(int key,
byte value) |
void |
putAll(com.gs.collections.api.map.primitive.IntByteMap map) |
void |
readExternal(java.io.ObjectInput in) |
IntByteHashMap |
reject(com.gs.collections.api.block.predicate.primitive.IntBytePredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
byte |
removeKeyIfAbsent(int key,
byte value) |
IntByteHashMap |
select(com.gs.collections.api.block.predicate.primitive.IntBytePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableIntByteMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
byte |
updateValue(int key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function) |
com.gs.collections.api.collection.primitive.MutableByteCollection |
values() |
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2) |
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3) |
IntByteHashMap |
withKeysValues(int key1,
byte value1,
int key2,
byte value2,
int key3,
byte value3,
int key4,
byte value4) |
IntByteHashMap |
withKeyValue(int key1,
byte value1) |
IntByteHashMap |
withoutAllKeys(com.gs.collections.api.IntIterable keys) |
IntByteHashMap |
withoutKey(int 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 IntByteHashMap()
public IntByteHashMap(int initialCapacity)
public IntByteHashMap(com.gs.collections.api.map.primitive.IntByteMap map)
public static IntByteHashMap newWithKeysValues(int key1, byte value1)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int 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.IntByteMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.IntByteMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.IntByteMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.IntByteMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.IntByteMaptoString 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 MutableIntKeysMappublic void put(int key,
byte value)
put in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic void putAll(com.gs.collections.api.map.primitive.IntByteMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic void removeKey(int key)
removeKey in interface com.gs.collections.api.map.primitive.MutableIntByteMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte removeKeyIfAbsent(int key,
byte value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte getIfAbsentPut(int key,
byte value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte getIfAbsentPut(int key,
com.gs.collections.api.block.function.primitive.ByteFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic <P> byte getIfAbsentPutWith(int key,
com.gs.collections.api.block.function.primitive.ByteFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte getIfAbsentPutWithKey(int key,
com.gs.collections.api.block.function.primitive.IntToByteFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte addToValue(int key,
byte toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic byte updateValue(int key,
byte initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.ByteToByteFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic IntByteHashMap withKeyValue(int key1, byte value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2)
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3)
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4)
public IntByteHashMap withoutKey(int key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic IntByteHashMap withoutAllKeys(com.gs.collections.api.IntIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic com.gs.collections.api.map.primitive.MutableIntByteMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic com.gs.collections.api.map.primitive.MutableIntByteMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic com.gs.collections.api.map.primitive.ImmutableIntByteMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.IntByteMappublic byte get(int key)
get in interface com.gs.collections.api.map.primitive.IntByteMappublic byte getIfAbsent(int key,
byte ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.IntByteMappublic byte getOrThrow(int key)
getOrThrow in interface com.gs.collections.api.map.primitive.IntByteMappublic boolean containsKey(int key)
containsKey in interface com.gs.collections.api.map.primitive.IntByteMapcontainsKey in interface IntKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.IntByteMapforEachKey in interface IntKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.IntByteProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.IntByteMappublic com.gs.collections.api.LazyIntIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.IntByteMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.IntBytePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.IntByteMappublic IntByteHashMap select(com.gs.collections.api.block.predicate.primitive.IntBytePredicate predicate)
select in interface com.gs.collections.api.map.primitive.IntByteMapselect in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic IntByteHashMap reject(com.gs.collections.api.block.predicate.primitive.IntBytePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.IntByteMapreject in interface com.gs.collections.api.map.primitive.MutableIntByteMappublic 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.MutableIntSet keySet()
keySet in interface com.gs.collections.api.map.primitive.IntByteMappublic com.gs.collections.api.collection.primitive.MutableByteCollection values()
values in interface com.gs.collections.api.map.primitive.ByteValuesMap