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