Class ByteLongHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
org.eclipse.collections.impl.map.mutable.primitive.ByteLongHashMap
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,ByteLongMap,LongValuesMap,MutableByteLongMap,MutableLongValuesMap,PrimitiveIterable,MutableByteKeysMap,ByteKeysMap
public class ByteLongHashMap
extends AbstractMutableLongValuesMap
implements MutableByteLongMap, Externalizable, MutableByteKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddToValue(byte key, long toBeAdded) booleanallSatisfyKeyValue(ByteLongPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(byte key) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteLongProcedure procedure) longget(byte key) longgetAndPut(byte key, long putValue, long defaultValue) longgetIfAbsent(byte key, long ifAbsent) longgetIfAbsentPut(byte key, long value) longgetIfAbsentPut(byte key, LongFunction0 function) <P> longgetIfAbsentPutWith(byte key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(byte key, ByteToLongFunction function) longgetOrThrow(byte key) inthashCode()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) keySet()keysView()static ByteLongHashMapnewWithKeysValues(byte key1, long value1) static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2) static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3) static ByteLongHashMapnewWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4) voidput(byte key, long value) voidputAll(ByteLongMap map) voidreject(ByteLongPredicate predicate) voidremove(byte key) voidremoveKey(byte key) longremoveKeyIfAbsent(byte key, long value) select(ByteLongPredicate predicate) toString()booleanlongupdateValue(byte key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(ByteLongToLongFunction function) values()withKeysValues(byte key1, long value1, byte key2, long value2) withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3) withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4) withKeyValue(byte key1, long value1) withoutAllKeys(ByteIterable keys) withoutKey(byte key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
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.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.impl.map.primitive.ByteKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.ByteLongMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteLongMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
ByteLongHashMap
public ByteLongHashMap() -
ByteLongHashMap
public ByteLongHashMap(int initialCapacity) -
ByteLongHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3) -
newWithKeysValues
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4) -
equals
- Specified by:
equalsin interfaceByteLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceLongIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(byte key, long value) - Specified by:
putin interfaceMutableByteLongMap
-
putAll
- Specified by:
putAllin interfaceMutableByteLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteLongMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteKeysMap- Specified by:
removeKeyin interfaceMutableByteLongMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(byte key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteLongMap
-
getIfAbsentPut
public long getIfAbsentPut(byte key, long value) - Specified by:
getIfAbsentPutin interfaceMutableByteLongMap
-
getAndPut
public long getAndPut(byte key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableByteLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteLongMap
-
addToValue
public long addToValue(byte key, long toBeAdded) - Specified by:
addToValuein interfaceMutableByteLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteLongMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteLongMap
-
withKeysValues
-
withKeysValues
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3) -
withKeysValues
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteLongMap
-
get
public long get(byte key) - Specified by:
getin interfaceByteLongMap
-
getIfAbsent
public long getIfAbsent(byte key, long ifAbsent) - Specified by:
getIfAbsentin interfaceByteLongMap
-
getOrThrow
public long getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteLongMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteKeysMap- Specified by:
containsKeyin interfaceByteLongMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteKeysMap- Specified by:
forEachKeyin interfaceByteLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteLongMap- Specified by:
flipUniqueValuesin interfaceMutableByteLongMap
-
select
- Specified by:
selectin interfaceByteLongMap- Specified by:
selectin interfaceMutableByteLongMap
-
reject
- Specified by:
rejectin interfaceByteLongMap- Specified by:
rejectin interfaceMutableByteLongMap
-
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 interfaceByteLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
trimToSize()instead