Class LongCharHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
org.eclipse.collections.impl.map.mutable.primitive.LongCharHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,CharValuesMap,LongCharMap,MutableCharValuesMap,MutableLongCharMap,PrimitiveIterable,MutableLongKeysMap,LongKeysMap
public class LongCharHashMap
extends AbstractMutableCharValuesMap
implements MutableLongCharMap, Externalizable, MutableLongKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(long key, char toBeAdded) booleanallSatisfyKeyValue(LongCharPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(long key) booleanvoidforEachKey(LongProcedure procedure) voidforEachKeyValue(LongCharProcedure procedure) charget(long key) chargetAndPut(long key, char putValue, char defaultValue) chargetIfAbsent(long key, char ifAbsent) chargetIfAbsentPut(long key, char value) chargetIfAbsentPut(long key, CharFunction0 function) <P> chargetIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(long key, LongToCharFunction function) chargetOrThrow(long key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) keySet()keysView()static LongCharHashMapnewWithKeysValues(long key1, char value1) static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2) static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3) static LongCharHashMapnewWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4) voidput(long key, char value) voidputAll(LongCharMap map) voidreject(LongCharPredicate predicate) voidremove(long key) voidremoveKey(long key) charremoveKeyIfAbsent(long key, char value) select(LongCharPredicate predicate) toString()booleancharupdateValue(long key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(LongCharToCharFunction function) values()withKeysValues(long key1, char value1, long key2, char value2) withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3) withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4) withKeyValue(long key1, char value1) withoutAllKeys(LongIterable keys) withoutKey(long key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
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.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.LongCharMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.LongKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongCharMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
LongCharHashMap
public LongCharHashMap() -
LongCharHashMap
public LongCharHashMap(int initialCapacity) -
LongCharHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
-
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3) -
newWithKeysValues
public static LongCharHashMap newWithKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4) -
equals
- Specified by:
equalsin interfaceLongCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceLongCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceLongCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceCharIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharValuesMap- Specified by:
clearin interfaceMutableLongKeysMap
-
put
public void put(long key, char value) - Specified by:
putin interfaceMutableLongCharMap
-
putAll
- Specified by:
putAllin interfaceMutableLongCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableLongCharMap
-
removeKey
public void removeKey(long key) - Specified by:
removeKeyin interfaceMutableLongCharMap- Specified by:
removeKeyin interfaceMutableLongKeysMap
-
remove
public void remove(long key) - Specified by:
removein interfaceMutableLongCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(long key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, char value) - Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getAndPut
public char getAndPut(long key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableLongCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableLongCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongCharMap
-
addToValue
public char addToValue(long key, char toBeAdded) - Specified by:
addToValuein interfaceMutableLongCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableLongCharMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableLongCharMap
-
withKeysValues
-
withKeysValues
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3) -
withKeysValues
public LongCharHashMap withKeysValues(long key1, char value1, long key2, char value2, long key3, char value3, long key4, char value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableLongCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableLongCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceLongCharMap
-
get
public char get(long key) - Specified by:
getin interfaceLongCharMap
-
getIfAbsent
public char getIfAbsent(long key, char ifAbsent) - Specified by:
getIfAbsentin interfaceLongCharMap
-
getOrThrow
public char getOrThrow(long key) - Specified by:
getOrThrowin interfaceLongCharMap
-
containsKey
public boolean containsKey(long key) - Specified by:
containsKeyin interfaceLongCharMap- Specified by:
containsKeyin interfaceLongKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceLongCharMap- Specified by:
forEachKeyin interfaceLongKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceLongCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceLongCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceLongCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceLongCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceLongCharMap- Specified by:
flipUniqueValuesin interfaceMutableLongCharMap
-
select
- Specified by:
selectin interfaceLongCharMap- Specified by:
selectin interfaceMutableLongCharMap
-
reject
- Specified by:
rejectin interfaceLongCharMap- Specified by:
rejectin interfaceMutableLongCharMap
-
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 interfaceLongCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
trimToSize()instead