public class ByteIntHashMap extends AbstractMutableIntValuesMap implements com.gs.collections.api.map.primitive.MutableByteIntMap, java.io.Externalizable, MutableByteKeysMap
AbstractMutableIntValuesMap.AbstractIntValuesCollection, AbstractMutableIntValuesMap.SentinelValues| Constructor and Description |
|---|
ByteIntHashMap() |
ByteIntHashMap(com.gs.collections.api.map.primitive.ByteIntMap map) |
ByteIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(byte key,
int toBeAdded) |
com.gs.collections.api.map.primitive.MutableByteIntMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteIntMap |
asUnmodifiable() |
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.ByteIntProcedure procedure) |
int |
get(byte key) |
protected int |
getEmptyValue() |
int |
getIfAbsent(byte key,
int ifAbsent) |
int |
getIfAbsentPut(byte key,
int value) |
int |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToIntFunction function) |
protected int |
getOccupiedWithData() |
int |
getOrThrow(byte key) |
protected AbstractMutableIntValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected int |
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.ObjectIntToObjectFunction<? super V,? extends V> function) |
com.gs.collections.api.iterator.MutableIntIterator |
intIterator() |
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.ByteIntPair> |
keyValuesView() |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
static ByteIntHashMap |
newWithKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
void |
put(byte key,
int value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteIntMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteIntHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteIntPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
int |
removeKeyIfAbsent(byte key,
int value) |
ByteIntHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteIntPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteIntMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
int |
updateValue(byte key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function) |
com.gs.collections.api.collection.primitive.MutableIntCollection |
values() |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3) |
ByteIntHashMap |
withKeysValues(byte key1,
int value1,
byte key2,
int value2,
byte key3,
int value3,
byte key4,
int value4) |
ByteIntHashMap |
withKeyValue(byte key1,
int value1) |
ByteIntHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteIntHashMap |
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 ByteIntHashMap()
public ByteIntHashMap(int initialCapacity)
public ByteIntHashMap(com.gs.collections.api.map.primitive.ByteIntMap map)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableIntValuesMapprotected AbstractMutableIntValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableIntValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableIntValuesMapprotected int getEmptyValue()
getEmptyValue in class AbstractMutableIntValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableIntValuesMapprotected int getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableIntValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteIntMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteIntMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteIntMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteIntMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteIntMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic com.gs.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface com.gs.collections.api.IntIterableintIterator in interface com.gs.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.IntIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
int value)
put in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic void putAll(com.gs.collections.api.map.primitive.ByteIntMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteIntMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int removeKeyIfAbsent(byte key,
int value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPut(byte key,
int value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic <P> int getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToIntFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int addToValue(byte key,
int toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic int updateValue(byte key,
int initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withKeyValue(byte key1, int value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3)
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4)
public ByteIntHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic com.gs.collections.api.map.primitive.MutableByteIntMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic com.gs.collections.api.map.primitive.MutableByteIntMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic com.gs.collections.api.map.primitive.ImmutableByteIntMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteIntMappublic int get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteIntMappublic int getIfAbsent(byte key,
int ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteIntMappublic int getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteIntMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteIntMapcontainsKey in interface ByteKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteIntMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteIntProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteIntMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteIntMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteIntPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteIntMappublic ByteIntHashMap select(com.gs.collections.api.block.predicate.primitive.ByteIntPredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteIntMapselect in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic ByteIntHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteIntPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteIntMapreject in interface com.gs.collections.api.map.primitive.MutableByteIntMappublic 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 AbstractMutableIntValuesMappublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteIntMappublic com.gs.collections.api.collection.primitive.MutableIntCollection values()
values in interface com.gs.collections.api.map.primitive.IntValuesMap