Class CharDoubleHashMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractDoubleIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
org.eclipse.collections.impl.map.mutable.primitive.CharDoubleHashMap
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,CharDoubleMap,DoubleValuesMap,MutableCharDoubleMap,MutableDoubleValuesMap,PrimitiveIterable,MutableCharKeysMap,CharKeysMap
public class CharDoubleHashMap
extends AbstractMutableDoubleValuesMap
implements MutableCharDoubleMap, Externalizable, MutableCharKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddToValue(char key, double toBeAdded) booleanallSatisfyKeyValue(CharDoublePredicate predicate) voidclear()voidcompact()Deprecated.booleancontainsKey(char key) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharDoubleProcedure procedure) doubleget(char key) doublegetAndPut(char key, double putValue, double defaultValue) doublegetIfAbsent(char key, double ifAbsent) doublegetIfAbsentPut(char key, double value) doublegetIfAbsentPut(char key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(char key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(char key, CharToDoubleFunction function) doublegetOrThrow(char key) inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) keySet()keysView()static CharDoubleHashMapnewWithKeysValues(char key1, double value1) static CharDoubleHashMapnewWithKeysValues(char key1, double value1, char key2, double value2) static CharDoubleHashMapnewWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3) static CharDoubleHashMapnewWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4) voidput(char key, double value) voidputAll(CharDoubleMap map) voidreject(CharDoublePredicate predicate) voidremove(char key) voidremoveKey(char key) doubleremoveKeyIfAbsent(char key, double value) select(CharDoublePredicate predicate) toString()booleandoubleupdateValue(char key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(CharDoubleToDoubleFunction function) values()withKeysValues(char key1, double value1, char key2, double value2) withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3) withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4) withKeyValue(char key1, double value1) withoutAllKeys(CharIterable keys) withoutKey(char key) voidMethods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
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.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.map.primitive.CharDoubleMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.impl.map.primitive.CharKeysMap
isEmpty, notEmpty, sizeMethods inherited from interface org.eclipse.collections.api.DoubleIterable
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.DoubleValuesMap
containsValue, forEachValue, tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMap
putPair, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, selectMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
CharDoubleHashMap
public CharDoubleHashMap() -
CharDoubleHashMap
public CharDoubleHashMap(int initialCapacity) -
CharDoubleHashMap
-
-
Method Details
-
newWithKeysValues
-
newWithKeysValues
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2) -
newWithKeysValues
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3) -
newWithKeysValues
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4) -
equals
- Specified by:
equalsin interfaceCharDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractDoubleIterable
-
doubleIterator
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharKeysMap- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(char key, double value) - Specified by:
putin interfaceMutableCharDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableCharDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharDoubleMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharDoubleMap- Specified by:
removeKeyin interfaceMutableCharKeysMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(char key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(char key, double value) - Specified by:
getIfAbsentPutin interfaceMutableCharDoubleMap
-
getAndPut
public double getAndPut(char key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableCharDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharDoubleMap
-
addToValue
public double addToValue(char key, double toBeAdded) - Specified by:
addToValuein interfaceMutableCharDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharDoubleMap
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharDoubleMap
-
withKeysValues
-
withKeysValues
public CharDoubleHashMap withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3) -
withKeysValues
public CharDoubleHashMap withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4) -
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharDoubleMap
-
get
public double get(char key) - Specified by:
getin interfaceCharDoubleMap
-
getIfAbsent
public double getIfAbsent(char key, double ifAbsent) - Specified by:
getIfAbsentin interfaceCharDoubleMap
-
getOrThrow
public double getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharDoubleMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharDoubleMap- Specified by:
containsKeyin interfaceCharKeysMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharDoubleMap- Specified by:
forEachKeyin interfaceCharKeysMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableCharDoubleMap
-
select
- Specified by:
selectin interfaceCharDoubleMap- Specified by:
selectin interfaceMutableCharDoubleMap
-
reject
- Specified by:
rejectin interfaceCharDoubleMap- Specified by:
rejectin interfaceMutableCharDoubleMap
-
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 interfaceCharDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
trimToSize()instead