Class IntByteHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
org.eclipse.collections.impl.map.mutable.primitive.IntByteHashMap
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,ByteValuesMap,IntByteMap,MutableByteValuesMap,MutableIntByteMap,PrimitiveIterable,MutableIntKeysMap,IntKeysMap
public class IntByteHashMap
extends AbstractMutableByteValuesMap
implements MutableIntByteMap, Externalizable, MutableIntKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteaddToValue(int key, byte toBeAdded) booleanallSatisfyKeyValue(IntBytePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(int key) booleanvoidforEachKey(IntProcedure procedure) voidforEachKeyValue(IntByteProcedure procedure) byteget(int key) bytegetAndPut(int key, byte putValue, byte defaultValue) bytegetIfAbsent(int key, byte ifAbsent) bytegetIfAbsentPut(int key, byte value) bytegetIfAbsentPut(int key, ByteFunction0 function) <P> bytegetIfAbsentPutWith(int key, ByteFunction<? super P> function, P parameter) bytegetIfAbsentPutWithKey(int key, IntToByteFunction function) bytegetOrThrow(int key) inthashCode()<V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) keySet()keysView()static IntByteHashMapnewWithKeysValues(int key1, byte value1) static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2) static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3) static IntByteHashMapnewWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4) voidput(int key, byte value) voidputAll(IntByteMap map) voidreject(IntBytePredicate predicate) voidremove(int key) voidremoveKey(int key) byteremoveKeyIfAbsent(int key, byte value) select(IntBytePredicate predicate) toString()booleanbyteupdateValue(int key, byte initialValueIfAbsent, ByteToByteFunction function) voidupdateValues(IntByteToByteFunction function) values()withKeysValues(int key1, byte value1, int key2, byte value2) withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3) withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4) withKeyValue(int key1, byte value1) withoutAllKeys(IntIterable keys) withoutKey(int key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableByteValuesMap
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.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.ByteIterable
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.ByteValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.IntByteMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.IntKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntByteMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
IntByteHashMap
public IntByteHashMap() -
IntByteHashMap
public IntByteHashMap(int initialCapacity) -
IntByteHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3) -
newWithKeysValues
public static IntByteHashMap newWithKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4) -
equals
- Specified by:
equalsin interfaceIntByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntByteMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceIntByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceByteIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteValuesMap- Specified by:
clearin interfaceMutableIntKeysMap
-
put
public void put(int key, byte value) - Specified by:
putin interfaceMutableIntByteMap
-
putAll
- Specified by:
putAllin interfaceMutableIntByteMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableIntByteMap
-
removeKey
public void removeKey(int key) - Specified by:
removeKeyin interfaceMutableIntByteMap- Specified by:
removeKeyin interfaceMutableIntKeysMap
-
remove
public void remove(int key) - Specified by:
removein interfaceMutableIntByteMap
-
removeKeyIfAbsent
public byte removeKeyIfAbsent(int key, byte value) - Specified by:
removeKeyIfAbsentin interfaceMutableIntByteMap
-
getIfAbsentPut
public byte getIfAbsentPut(int key, byte value) - Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getAndPut
public byte getAndPut(int key, byte putValue, byte defaultValue) - Specified by:
getAndPutin interfaceMutableIntByteMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableIntByteMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableIntByteMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntByteMap
-
addToValue
public byte addToValue(int key, byte toBeAdded) - Specified by:
addToValuein interfaceMutableIntByteMap
-
updateValue
- Specified by:
updateValuein interfaceMutableIntByteMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableIntByteMap
-
withKeysValues
-
withKeysValues
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3) -
withKeysValues
public IntByteHashMap withKeysValues(int key1, byte value1, int key2, byte value2, int key3, byte value3, int key4, byte value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableIntByteMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableIntByteMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntByteMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntByteMap
-
toImmutable
- Specified by:
toImmutablein interfaceIntByteMap
-
get
public byte get(int key) - Specified by:
getin interfaceIntByteMap
-
getIfAbsent
public byte getIfAbsent(int key, byte ifAbsent) - Specified by:
getIfAbsentin interfaceIntByteMap
-
getOrThrow
public byte getOrThrow(int key) - Specified by:
getOrThrowin interfaceIntByteMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfaceIntByteMap- Specified by:
containsKeyin interfaceIntKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceIntByteMap- Specified by:
forEachKeyin interfaceIntKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceIntByteMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceIntByteMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceIntByteMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceIntByteMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceIntByteMap- Specified by:
flipUniqueValuesin interfaceMutableIntByteMap
-
select
- Specified by:
selectin interfaceIntByteMap- Specified by:
selectin interfaceMutableIntByteMap
-
reject
- Specified by:
rejectin interfaceIntByteMap- Specified by:
rejectin interfaceMutableIntByteMap
-
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 interfaceIntByteMap
-
values
- Specified by:
valuesin interfaceByteValuesMap
-
trimToSize()instead