Class ByteIntHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractIntIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteIntHashMap
- All Implemented Interfaces:
Externalizable,Serializable,IntIterable,ByteIntMap,IntValuesMap,MutableByteIntMap,MutableIntValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteIntHashMap
extends AbstractMutableIntValuesMap
implements MutableByteIntMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddToValue(byte key, int toBeAdded) booleanallSatisfyKeyValue(ByteIntPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteIntProcedure procedure) intget(byte key) intgetAndPut(byte key, int putValue, int defaultValue) intgetIfAbsent(byte key, int ifAbsent) intgetIfAbsentPut(byte key, int value) intgetIfAbsentPut(byte key, IntFunction0 function) <P> intgetIfAbsentPutWith(byte key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(byte key, ByteToIntFunction function) intgetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectIntToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteIntHashMapnewWithKeysValues(byte key1, int value1) static ByteIntHashMapnewWithKeysValues(byte key1, int value1, byte key2, int value2) static ByteIntHashMapnewWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3) static ByteIntHashMapnewWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4) voidput(byte key, int value) voidputAll(ByteIntMap map) voidreject(ByteIntPredicate predicate) voidremove(byte key) voidremoveKey(byte key) intremoveKeyIfAbsent(byte key, int value) select(ByteIntPredicate predicate) toString()booleanintupdateValue(byte key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(ByteIntToIntFunction function) values()withKeysValues(byte key1, int value1, byte key2, int value2) withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3) withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4) withKeyValue(byte key1, int value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayMethods inherited from class org.eclipse.collections.impl.primitive.AbstractIntIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteIntMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.IntValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteIntMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
ByteIntHashMap
public ByteIntHashMap() -
ByteIntHashMap
public ByteIntHashMap(int initialCapacity) -
ByteIntHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3) -
newWithKeysValues
public static ByteIntHashMap newWithKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4) -
equals
- Specified by:
equalsin interfaceByteIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteIntMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteIntMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractIntIterable
-
intIterator
- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(byte key, int value) - Specified by:
putin interfaceMutableByteIntMap
-
putAll
- Specified by:
putAllin interfaceMutableByteIntMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteIntMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteIntMap- Specified by:
removeKeyin interfaceMutableByteKeysMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(byte key, int value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteIntMap
-
getIfAbsentPut
public int getIfAbsentPut(byte key, int value) - Specified by:
getIfAbsentPutin interfaceMutableByteIntMap
-
getAndPut
public int getAndPut(byte key, int putValue, int defaultValue) - Specified by:
getAndPutin interfaceMutableByteIntMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteIntMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteIntMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteIntMap
-
addToValue
public int addToValue(byte key, int toBeAdded) - Specified by:
addToValuein interfaceMutableByteIntMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteIntMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteIntMap
-
withKeysValues
-
withKeysValues
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3) -
withKeysValues
public ByteIntHashMap withKeysValues(byte key1, int value1, byte key2, int value2, byte key3, int value3, byte key4, int value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteIntMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteIntMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteIntMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteIntMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteIntMap
-
get
public int get(byte key) - Specified by:
getin interfaceByteIntMap
-
getIfAbsent
public int getIfAbsent(byte key, int ifAbsent) - Specified by:
getIfAbsentin interfaceByteIntMap
-
getOrThrow
public int getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteIntMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteIntMap- Specified by:
containsKeyin interfaceByteKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteIntMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteIntMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteIntMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteIntMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteIntMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteIntMap- Specified by:
flipUniqueValuesin interfaceMutableByteIntMap
-
select
- Specified by:
selectin interfaceByteIntMap- Specified by:
selectin interfaceMutableByteIntMap
-
reject
- Specified by:
rejectin interfaceByteIntMap- Specified by:
rejectin interfaceMutableByteIntMap
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. -
keySet
- Specified by:
keySetin interfaceByteIntMap
-
values
- Specified by:
valuesin interfaceIntValuesMap
-
trimToSize()instead