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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteByteHashMap()ByteByteHashMap(int initialCapacity)ByteByteHashMap(ByteByteMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byteaddToValue(byte key, byte toBeAdded)MutableByteByteMapasSynchronized()MutableByteByteMapasUnmodifiable()MutableByteIteratorbyteIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(byte key)booleanequals(Object obj)MutableByteByteMapflipUniqueValues()voidforEachKey(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)MutableByteSetkeySet()LazyByteIterablekeysView()RichIterable<ByteBytePair>keyValuesView()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)voidreadExternal(ObjectInput in)ByteByteHashMapreject(ByteBytePredicate predicate)voidremove(byte key)voidremoveKey(byte key)byteremoveKeyIfAbsent(byte key, byte value)ByteByteHashMapselect(ByteBytePredicate predicate)ImmutableByteByteMaptoImmutable()StringtoString()booleantrimToSize()byteupdateValue(byte key, byte initialValueIfAbsent, ByteToByteFunction function)voidupdateValues(ByteByteToByteFunction function)MutableByteCollectionvalues()ByteByteHashMapwithKeysValues(byte key1, byte value1, byte key2, byte value2)ByteByteHashMapwithKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3)ByteByteHashMapwithKeysValues(byte key1, byte value1, byte key2, byte value2, byte key3, byte value3, byte key4, byte value4)ByteByteHashMapwithKeyValue(byte key1, byte value1)ByteByteHashMapwithoutAllKeys(ByteIterable keys)ByteByteHashMapwithoutKey(byte key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteByteMap
injectIntoKeyValue
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteByteMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
ByteByteHashMap
public ByteByteHashMap()
-
ByteByteHashMap
public ByteByteHashMap(int initialCapacity)
-
ByteByteHashMap
public ByteByteHashMap(ByteByteMap map)
-
-
Method Detail
-
newWithKeysValues
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1)
-
newWithKeysValues
public static ByteByteHashMap newWithKeysValues(byte key1, byte value1, byte key2, byte value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceByteByteMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceByteByteMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceByteByteMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractByteIterable
-
byteIterator
public MutableByteIterator 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
public void putAll(ByteByteMap map)
- Specified by:
putAllin interfaceMutableByteByteMap
-
updateValues
public void updateValues(ByteByteToByteFunction function)
- 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
public byte getIfAbsentPut(byte key, ByteFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableByteByteMap
-
getIfAbsentPutWith
public <P> byte getIfAbsentPutWith(byte key, ByteFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableByteByteMap
-
getIfAbsentPutWithKey
public byte getIfAbsentPutWithKey(byte key, ByteToByteFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteByteMap
-
addToValue
public byte addToValue(byte key, byte toBeAdded)- Specified by:
addToValuein interfaceMutableByteByteMap
-
updateValue
public byte updateValue(byte key, byte initialValueIfAbsent, ByteToByteFunction function)- Specified by:
updateValuein interfaceMutableByteByteMap
-
withKeyValue
public ByteByteHashMap withKeyValue(byte key1, byte value1)
- Specified by:
withKeyValuein interfaceMutableByteByteMap
-
withKeysValues
public ByteByteHashMap withKeysValues(byte key1, byte value1, byte key2, byte value2)
-
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
public ByteByteHashMap withoutKey(byte key)
- Specified by:
withoutKeyin interfaceMutableByteByteMap
-
withoutAllKeys
public ByteByteHashMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableByteByteMap
-
asUnmodifiable
public MutableByteByteMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteByteMap
-
asSynchronized
public MutableByteByteMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteByteMap
-
toImmutable
public ImmutableByteByteMap 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
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKeyin interfaceByteByteMap- Specified by:
forEachKeyin interfaceByteKeysMap
-
forEachKeyValue
public void forEachKeyValue(ByteByteProcedure procedure)
- Specified by:
forEachKeyValuein interfaceByteByteMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysViewin interfaceByteByteMap
-
keyValuesView
public RichIterable<ByteBytePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceByteByteMap
-
flipUniqueValues
public MutableByteByteMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceByteByteMap- Specified by:
flipUniqueValuesin interfaceMutableByteByteMap
-
select
public ByteByteHashMap select(ByteBytePredicate predicate)
- Specified by:
selectin interfaceByteByteMap- Specified by:
selectin interfaceMutableByteByteMap
-
reject
public ByteByteHashMap reject(ByteBytePredicate predicate)
- Specified by:
rejectin interfaceByteByteMap- Specified by:
rejectin interfaceMutableByteByteMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void 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
public MutableByteSet keySet()
- Specified by:
keySetin interfaceByteByteMap
-
values
public MutableByteCollection values()
- Specified by:
valuesin interfaceByteValuesMap
-
-