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 char
addToValue(double key, char toBeAdded)
MutableDoubleCharMap
asSynchronized()
MutableDoubleCharMap
asUnmodifiable()
MutableCharIterator
charIterator()
void
clear()
void
compact()
Deprecated.since 12.0 - UsetrimToSize()
insteadboolean
containsKey(double key)
boolean
equals(Object obj)
MutableCharDoubleMap
flipUniqueValues()
void
forEachKey(DoubleProcedure procedure)
void
forEachKeyValue(DoubleCharProcedure procedure)
char
get(double key)
char
getAndPut(double key, char putValue, char defaultValue)
char
getIfAbsent(double key, char ifAbsent)
char
getIfAbsentPut(double key, char value)
char
getIfAbsentPut(double key, CharFunction0 function)
<P> char
getIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter)
char
getIfAbsentPutWithKey(double key, DoubleToCharFunction function)
char
getOrThrow(double key)
int
hashCode()
<V> V
injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
MutableDoubleSet
keySet()
LazyDoubleIterable
keysView()
RichIterable<DoubleCharPair>
keyValuesView()
static DoubleCharHashMap
newWithKeysValues(double key1, char value1)
static DoubleCharHashMap
newWithKeysValues(double key1, char value1, double key2, char value2)
static DoubleCharHashMap
newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3)
static DoubleCharHashMap
newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4)
void
put(double key, char value)
void
putAll(DoubleCharMap map)
void
readExternal(ObjectInput in)
DoubleCharHashMap
reject(DoubleCharPredicate predicate)
void
remove(double key)
void
removeKey(double key)
char
removeKeyIfAbsent(double key, char value)
DoubleCharHashMap
select(DoubleCharPredicate predicate)
ImmutableDoubleCharMap
toImmutable()
String
toString()
boolean
trimToSize()
char
updateValue(double key, char initialValueIfAbsent, CharToCharFunction function)
void
updateValues(DoubleCharToCharFunction function)
MutableCharCollection
values()
DoubleCharHashMap
withKeysValues(double key1, char value1, double key2, char value2)
DoubleCharHashMap
withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3)
DoubleCharHashMap
withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4)
DoubleCharHashMap
withKeyValue(double key1, char value1)
DoubleCharHashMap
withoutAllKeys(DoubleIterable keys)
DoubleCharHashMap
withoutKey(double key)
void
writeExternal(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:
equals
in interfaceDoubleCharMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleCharMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceDoubleCharMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractCharIterable
-
charIterator
public MutableCharIterator charIterator()
- Specified by:
charIterator
in interfaceCharIterable
- Specified by:
charIterator
in interfaceMutableCharValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V,? extends V> function)
- Specified by:
injectInto
in interfaceCharIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableCharValuesMap
- Specified by:
clear
in interfaceMutableDoubleKeysMap
-
put
public void put(double key, char value)
- Specified by:
put
in interfaceMutableDoubleCharMap
-
putAll
public void putAll(DoubleCharMap map)
- Specified by:
putAll
in interfaceMutableDoubleCharMap
-
updateValues
public void updateValues(DoubleCharToCharFunction function)
- Specified by:
updateValues
in interfaceMutableDoubleCharMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleCharMap
- Specified by:
removeKey
in interfaceMutableDoubleKeysMap
-
remove
public void remove(double key)
- Specified by:
remove
in interfaceMutableDoubleCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(double key, char value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, char value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleCharMap
-
getAndPut
public char getAndPut(double key, char putValue, char defaultValue)
- Specified by:
getAndPut
in interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, CharFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(double key, DoubleToCharFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleCharMap
-
addToValue
public char addToValue(double key, char toBeAdded)
- Specified by:
addToValue
in interfaceMutableDoubleCharMap
-
updateValue
public char updateValue(double key, char initialValueIfAbsent, CharToCharFunction function)
- Specified by:
updateValue
in interfaceMutableDoubleCharMap
-
withKeyValue
public DoubleCharHashMap withKeyValue(double key1, char value1)
- Specified by:
withKeyValue
in 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:
withoutKey
in interfaceMutableDoubleCharMap
-
withoutAllKeys
public DoubleCharHashMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleCharMap
-
asUnmodifiable
public MutableDoubleCharMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleCharMap
-
asSynchronized
public MutableDoubleCharMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleCharMap
-
toImmutable
public ImmutableDoubleCharMap toImmutable()
- Specified by:
toImmutable
in interfaceDoubleCharMap
-
get
public char get(double key)
- Specified by:
get
in interfaceDoubleCharMap
-
getIfAbsent
public char getIfAbsent(double key, char ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleCharMap
-
getOrThrow
public char getOrThrow(double key)
- Specified by:
getOrThrow
in interfaceDoubleCharMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleCharMap
- Specified by:
containsKey
in interfaceDoubleKeysMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleCharMap
- Specified by:
forEachKey
in interfaceDoubleKeysMap
-
forEachKeyValue
public void forEachKeyValue(DoubleCharProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleCharMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleCharMap
-
keyValuesView
public RichIterable<DoubleCharPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleCharMap
-
flipUniqueValues
public MutableCharDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceDoubleCharMap
- Specified by:
flipUniqueValues
in interfaceMutableDoubleCharMap
-
select
public DoubleCharHashMap select(DoubleCharPredicate predicate)
- Specified by:
select
in interfaceDoubleCharMap
- Specified by:
select
in interfaceMutableDoubleCharMap
-
reject
public DoubleCharHashMap reject(DoubleCharPredicate predicate)
- Specified by:
reject
in interfaceDoubleCharMap
- Specified by:
reject
in interfaceMutableDoubleCharMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
keySet
in interfaceDoubleCharMap
-
values
public MutableCharCollection values()
- Specified by:
values
in interfaceCharValuesMap
-
-