Class LongLongHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableLongValuesMap
org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap
- All Implemented Interfaces:
Externalizable,Serializable,LongIterable,LongLongMap,LongValuesMap,MutableLongLongMap,MutableLongValuesMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongLongHashMap
extends AbstractMutableLongValuesMap
implements MutableLongLongMap, Externalizable, MutableLongKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddToValue(long key, long toBeAdded) booleanallSatisfyKeyValue(LongLongPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(long key) booleanvoidforEachKey(LongProcedure procedure) voidforEachKeyValue(LongLongProcedure procedure) longget(long key) longgetAndPut(long key, long putValue, long defaultValue) longgetIfAbsent(long key, long ifAbsent) longgetIfAbsentPut(long key, long value) longgetIfAbsentPut(long key, LongFunction0 function) <P> longgetIfAbsentPutWith(long key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(long key, LongToLongFunction function) longgetOrThrow(long key) inthashCode()<V> VinjectInto(V injectedValue, ObjectLongToObjectFunction<? super V, ? extends V> function) keySet()keysView()static LongLongHashMapnewWithKeysValues(long key1, long value1) static LongLongHashMapnewWithKeysValues(long key1, long value1, long key2, long value2) static LongLongHashMapnewWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3) static LongLongHashMapnewWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4) voidput(long key, long value) voidputAll(LongLongMap map) voidreject(LongLongPredicate predicate) voidremove(long key) voidremoveKey(long key) longremoveKeyIfAbsent(long key, long value) select(LongLongPredicate predicate) toString()booleanlongupdateValue(long key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(LongLongToLongFunction function) values()withKeysValues(long key1, long value1, long key2, long value2) withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3) withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4) withKeyValue(long key1, long value1) withoutAllKeys(LongIterable keys) withoutKey(long 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.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.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.LongLongMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongLongMap
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
-
LongLongHashMap
public LongLongHashMap() -
LongLongHashMap
public LongLongHashMap(int initialCapacity) -
LongLongHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3) -
newWithKeysValues
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4) -
equals
- Specified by:
equalsin interfaceLongLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceLongLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceLongLongMap- 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 interfaceMutableLongKeysMap- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(long key, long value) - Specified by:
putin interfaceMutableLongLongMap
-
putAll
- Specified by:
putAllin interfaceMutableLongLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableLongLongMap
-
removeKey
public void removeKey(long key) - Specified by:
removeKeyin interfaceMutableLongKeysMap- Specified by:
removeKeyin interfaceMutableLongLongMap
-
remove
public void remove(long key) - Specified by:
removein interfaceMutableLongLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(long key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableLongLongMap
-
getIfAbsentPut
public long getIfAbsentPut(long key, long value) - Specified by:
getIfAbsentPutin interfaceMutableLongLongMap
-
getAndPut
public long getAndPut(long key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableLongLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableLongLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableLongLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongLongMap
-
addToValue
public long addToValue(long key, long toBeAdded) - Specified by:
addToValuein interfaceMutableLongLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableLongLongMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableLongLongMap
-
withKeysValues
-
withKeysValues
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3) -
withKeysValues
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableLongLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableLongLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceLongLongMap
-
get
public long get(long key) - Specified by:
getin interfaceLongLongMap
-
getIfAbsent
public long getIfAbsent(long key, long ifAbsent) - Specified by:
getIfAbsentin interfaceLongLongMap
-
getOrThrow
public long getOrThrow(long key) - Specified by:
getOrThrowin interfaceLongLongMap
-
containsKey
public boolean containsKey(long key) - Specified by:
containsKeyin interfaceLongKeysMap- Specified by:
containsKeyin interfaceLongLongMap
-
forEachKey
- Specified by:
forEachKeyin interfaceLongKeysMap- Specified by:
forEachKeyin interfaceLongLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceLongLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceLongLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceLongLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceLongLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceLongLongMap- Specified by:
flipUniqueValuesin interfaceMutableLongLongMap
-
select
- Specified by:
selectin interfaceLongLongMap- Specified by:
selectin interfaceMutableLongLongMap
-
reject
- Specified by:
rejectin interfaceLongLongMap- Specified by:
rejectin interfaceMutableLongLongMap
-
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 interfaceLongLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
trimToSize()instead