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