public class CharDoubleHashMap extends AbstractMutableDoubleValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharDoubleMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharDoubleHashMap() |
CharDoubleHashMap(org.eclipse.collections.api.map.primitive.CharDoubleMap map) |
CharDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(char key,
double toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharDoubleMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableCharDoubleMap |
asUnmodifiable() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(char key) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharDoubleProcedure procedure) |
double |
get(char key) |
double |
getIfAbsent(char key,
double ifAbsent) |
double |
getIfAbsentPut(char key,
double value) |
double |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToDoubleFunction function) |
double |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableCharSet |
keySet() |
org.eclipse.collections.api.LazyCharIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharDoublePair> |
keyValuesView() |
static CharDoubleHashMap |
newWithKeysValues(char key1,
double value1) |
static CharDoubleHashMap |
newWithKeysValues(char key1,
double value1,
char key2,
double value2) |
static CharDoubleHashMap |
newWithKeysValues(char key1,
double value1,
char key2,
double value2,
char key3,
double value3) |
static CharDoubleHashMap |
newWithKeysValues(char key1,
double value1,
char key2,
double value2,
char key3,
double value3,
char key4,
double value4) |
void |
put(char key,
double value) |
void |
putAll(org.eclipse.collections.api.map.primitive.CharDoubleMap map) |
void |
readExternal(ObjectInput in) |
CharDoubleHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharDoublePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
double |
removeKeyIfAbsent(char key,
double value) |
CharDoubleHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharDoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableCharDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(char key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
values() |
CharDoubleHashMap |
withKeysValues(char key1,
double value1,
char key2,
double value2) |
CharDoubleHashMap |
withKeysValues(char key1,
double value1,
char key2,
double value2,
char key3,
double value3) |
CharDoubleHashMap |
withKeysValues(char key1,
double value1,
char key2,
double value2,
char key3,
double value3,
char key4,
double value4) |
CharDoubleHashMap |
withKeyValue(char key1,
double value1) |
CharDoubleHashMap |
withoutAllKeys(org.eclipse.collections.api.CharIterable keys) |
CharDoubleHashMap |
withoutKey(char key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharDoubleHashMap()
public CharDoubleHashMap(int initialCapacity)
public CharDoubleHashMap(org.eclipse.collections.api.map.primitive.CharDoubleMap map)
public static CharDoubleHashMap newWithKeysValues(char key1, double value1)
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2)
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3)
public static CharDoubleHashMap newWithKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharDoubleMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.DoubleIterabledoubleIterator in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.DoubleIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableCharKeysMappublic void put(char key,
double value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic void putAll(org.eclipse.collections.api.map.primitive.CharDoubleMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double removeKeyIfAbsent(char key,
double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPut(char key,
double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic <P> double getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToDoubleFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double addToValue(char key,
double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic double updateValue(char key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap withKeyValue(char key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap withKeysValues(char key1, double value1, char key2, double value2)
public CharDoubleHashMap withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3)
public CharDoubleHashMap withKeysValues(char key1, double value1, char key2, double value2, char key3, double value3, char key4, double value4)
public CharDoubleHashMap withoutKey(char key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic org.eclipse.collections.api.map.primitive.MutableCharDoubleMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic org.eclipse.collections.api.map.primitive.MutableCharDoubleMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic org.eclipse.collections.api.map.primitive.ImmutableCharDoubleMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic double get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic double getIfAbsent(char key,
double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic double getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharDoubleMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharDoubleMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharDoubleProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharDoublePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic CharDoubleHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharDoublePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharDoubleMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharDoublePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharDoubleMapreject in interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.CharDoubleMappublic org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.DoubleValuesMapCopyright © 2004–2018. All rights reserved.