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