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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongLongHashMap()LongLongHashMap(int initialCapacity)LongLongHashMap(LongLongMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longaddToValue(long key, long toBeAdded)booleanallSatisfyKeyValue(LongLongPredicate predicate)MutableLongLongMapasSynchronized()MutableLongLongMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(long key)booleanequals(Object obj)MutableLongLongMapflipUniqueValues()voidforEachKey(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)MutableLongSetkeySet()LazyLongIterablekeysView()RichIterable<LongLongPair>keyValuesView()MutableLongIteratorlongIterator()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)voidreadExternal(ObjectInput in)LongLongHashMapreject(LongLongPredicate predicate)voidremove(long key)voidremoveKey(long key)longremoveKeyIfAbsent(long key, long value)LongLongHashMapselect(LongLongPredicate predicate)ImmutableLongLongMaptoImmutable()StringtoString()booleantrimToSize()longupdateValue(long key, long initialValueIfAbsent, LongToLongFunction function)voidupdateValues(LongLongToLongFunction function)MutableLongCollectionvalues()LongLongHashMapwithKeysValues(long key1, long value1, long key2, long value2)LongLongHashMapwithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3)LongLongHashMapwithKeysValues(long key1, long value1, long key2, long value2, long key3, long value3, long key4, long value4)LongLongHashMapwithKeyValue(long key1, long value1)LongLongHashMapwithoutAllKeys(LongIterable keys)LongLongHashMapwithoutKey(long key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongLongMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
LongLongHashMap
public LongLongHashMap()
-
LongLongHashMap
public LongLongHashMap(int initialCapacity)
-
LongLongHashMap
public LongLongHashMap(LongLongMap map)
-
-
Method Detail
-
newWithKeysValues
public static LongLongHashMap newWithKeysValues(long key1, long value1)
-
newWithKeysValues
public static LongLongHashMap newWithKeysValues(long key1, long value1, long key2, long value2)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceLongLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongLongMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLongIterable
-
longIterator
public MutableLongIterator 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
public void putAll(LongLongMap map)
- Specified by:
putAllin interfaceMutableLongLongMap
-
updateValues
public void updateValues(LongLongToLongFunction function)
- 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
public long getIfAbsentPut(long key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(long key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(long key, LongToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongLongMap
-
addToValue
public long addToValue(long key, long toBeAdded)- Specified by:
addToValuein interfaceMutableLongLongMap
-
updateValue
public long updateValue(long key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableLongLongMap
-
withKeyValue
public LongLongHashMap withKeyValue(long key1, long value1)
- Specified by:
withKeyValuein interfaceMutableLongLongMap
-
withKeysValues
public LongLongHashMap withKeysValues(long key1, long value1, long key2, long value2)
-
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
public LongLongHashMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongLongMap
-
withoutAllKeys
public LongLongHashMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongLongMap
-
asUnmodifiable
public MutableLongLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongLongMap
-
asSynchronized
public MutableLongLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongLongMap
-
toImmutable
public ImmutableLongLongMap 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
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongKeysMap- Specified by:
forEachKeyin interfaceLongLongMap
-
forEachKeyValue
public void forEachKeyValue(LongLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongLongMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(LongLongPredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceLongLongMap- Since:
- 12.0
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongLongMap
-
keyValuesView
public RichIterable<LongLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongLongMap
-
flipUniqueValues
public MutableLongLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongLongMap- Specified by:
flipUniqueValuesin interfaceMutableLongLongMap
-
select
public LongLongHashMap select(LongLongPredicate predicate)
- Specified by:
selectin interfaceLongLongMap- Specified by:
selectin interfaceMutableLongLongMap
-
reject
public LongLongHashMap reject(LongLongPredicate predicate)
- Specified by:
rejectin interfaceLongLongMap- Specified by:
rejectin interfaceMutableLongLongMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
-