Class DoubleCharHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableCharValuesMap
org.eclipse.collections.impl.map.mutable.primitive.DoubleCharHashMap
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,CharValuesMap,DoubleCharMap,MutableCharValuesMap,MutableDoubleCharMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleCharHashMap
extends AbstractMutableCharValuesMap
implements MutableDoubleCharMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(double key, char toBeAdded) booleanallSatisfyKeyValue(DoubleCharPredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(double key) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleCharProcedure procedure) charget(double key) chargetAndPut(double key, char putValue, char defaultValue) chargetIfAbsent(double key, char ifAbsent) chargetIfAbsentPut(double key, char value) chargetIfAbsentPut(double key, CharFunction0 function) <P> chargetIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(double key, DoubleToCharFunction function) chargetOrThrow(double key) inthashCode()<V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) keySet()keysView()static DoubleCharHashMapnewWithKeysValues(double key1, char value1) static DoubleCharHashMapnewWithKeysValues(double key1, char value1, double key2, char value2) static DoubleCharHashMapnewWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3) static DoubleCharHashMapnewWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4) voidput(double key, char value) voidputAll(DoubleCharMap map) voidreject(DoubleCharPredicate predicate) voidremove(double key) voidremoveKey(double key) charremoveKeyIfAbsent(double key, char value) select(DoubleCharPredicate predicate) toString()booleancharupdateValue(double key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(DoubleCharToCharFunction function) values()withKeysValues(double key1, char value1, double key2, char value2) withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3) withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4) withKeyValue(double key1, char value1) withoutAllKeys(DoubleIterable keys) withoutKey(double 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.DoubleCharMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
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.MutableDoubleCharMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
DoubleCharHashMap
public DoubleCharHashMap() -
DoubleCharHashMap
public DoubleCharHashMap(int initialCapacity) -
DoubleCharHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2) -
newWithKeysValues
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3) -
newWithKeysValues
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4) -
equals
- Specified by:
equalsin interfaceDoubleCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleCharMap- 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 interfaceMutableDoubleKeysMap
-
put
public void put(double key, char value) - Specified by:
putin interfaceMutableDoubleCharMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleCharMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleCharMap- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(double key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, char value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getAndPut
public char getAndPut(double key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleCharMap
-
addToValue
public char addToValue(double key, char toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleCharMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleCharMap
-
withKeysValues
-
withKeysValues
public DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3) -
withKeysValues
public DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleCharMap
-
get
public char get(double key) - Specified by:
getin interfaceDoubleCharMap
-
getIfAbsent
public char getIfAbsent(double key, char ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleCharMap
-
getOrThrow
public char getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleCharMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleCharMap- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleCharMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleCharMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleCharMap
-
select
- Specified by:
selectin interfaceDoubleCharMap- Specified by:
selectin interfaceMutableDoubleCharMap
-
reject
- Specified by:
rejectin interfaceDoubleCharMap- Specified by:
rejectin interfaceMutableDoubleCharMap
-
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 interfaceDoubleCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
trimToSize()instead