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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleCharHashMap()DoubleCharHashMap(int initialCapacity)DoubleCharHashMap(DoubleCharMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description charaddToValue(double key, char toBeAdded)MutableDoubleCharMapasSynchronized()MutableDoubleCharMapasUnmodifiable()MutableCharIteratorcharIterator()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleanequals(Object obj)MutableCharDoubleMapflipUniqueValues()voidforEachKey(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)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleCharPair>keyValuesView()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)voidreadExternal(ObjectInput in)DoubleCharHashMapreject(DoubleCharPredicate predicate)voidremove(double key)voidremoveKey(double key)charremoveKeyIfAbsent(double key, char value)DoubleCharHashMapselect(DoubleCharPredicate predicate)ImmutableDoubleCharMaptoImmutable()StringtoString()booleantrimToSize()charupdateValue(double key, char initialValueIfAbsent, CharToCharFunction function)voidupdateValues(DoubleCharToCharFunction function)MutableCharCollectionvalues()DoubleCharHashMapwithKeysValues(double key1, char value1, double key2, char value2)DoubleCharHashMapwithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3)DoubleCharHashMapwithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4)DoubleCharHashMapwithKeyValue(double key1, char value1)DoubleCharHashMapwithoutAllKeys(DoubleIterable keys)DoubleCharHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods 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, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleCharMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
DoubleCharHashMap
public DoubleCharHashMap()
-
DoubleCharHashMap
public DoubleCharHashMap(int initialCapacity)
-
DoubleCharHashMap
public DoubleCharHashMap(DoubleCharMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleCharHashMap newWithKeysValues(double key1, char value1)
-
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
public boolean equals(Object obj)
- Specified by:
equalsin interfaceDoubleCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractCharIterable
-
charIterator
public MutableCharIterator 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
public void putAll(DoubleCharMap map)
- Specified by:
putAllin interfaceMutableDoubleCharMap
-
updateValues
public void updateValues(DoubleCharToCharFunction function)
- 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
public char getIfAbsentPut(double key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(double key, DoubleToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleCharMap
-
addToValue
public char addToValue(double key, char toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleCharMap
-
updateValue
public char updateValue(double key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableDoubleCharMap
-
withKeyValue
public DoubleCharHashMap withKeyValue(double key1, char value1)
- Specified by:
withKeyValuein interfaceMutableDoubleCharMap
-
withKeysValues
public DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2)
-
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
public DoubleCharHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleCharMap
-
withoutAllKeys
public DoubleCharHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleCharMap
-
asUnmodifiable
public MutableDoubleCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleCharMap
-
asSynchronized
public MutableDoubleCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleCharMap
-
toImmutable
public ImmutableDoubleCharMap 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
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleCharMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
forEachKeyValue
public void forEachKeyValue(DoubleCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleCharMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleCharMap
-
keyValuesView
public RichIterable<DoubleCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleCharMap
-
flipUniqueValues
public MutableCharDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleCharMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleCharMap
-
select
public DoubleCharHashMap select(DoubleCharPredicate predicate)
- Specified by:
selectin interfaceDoubleCharMap- Specified by:
selectin interfaceMutableDoubleCharMap
-
reject
public DoubleCharHashMap reject(DoubleCharPredicate predicate)
- Specified by:
rejectin interfaceDoubleCharMap- Specified by:
rejectin interfaceMutableDoubleCharMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
-