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