public class CharDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableCharDoubleMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharDoubleHashMap() |
CharDoubleHashMap(CharDoubleMap map) |
CharDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(char key,
double toBeAdded) |
MutableCharDoubleMap |
asSynchronized() |
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) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
MutableDoubleCharMap |
flipUniqueValues() |
void |
forEachKey(CharProcedure procedure) |
void |
forEachKeyValue(CharDoubleProcedure procedure) |
double |
get(char key) |
double |
getAndPut(char key,
double putValue,
double defaultValue) |
double |
getIfAbsent(char key,
double ifAbsent) |
double |
getIfAbsentPut(char key,
double value) |
double |
getIfAbsentPut(char key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(char key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(char key,
CharToDoubleFunction function) |
double |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableCharSet |
keySet() |
LazyCharIterable |
keysView() |
RichIterable<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(CharDoubleMap map) |
void |
readExternal(ObjectInput in) |
CharDoubleHashMap |
reject(CharDoublePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
double |
removeKeyIfAbsent(char key,
double value) |
CharDoubleHashMap |
select(CharDoublePredicate predicate) |
ImmutableCharDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(char key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
void |
updateValues(CharDoubleToDoubleFunction function) |
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(CharIterable keys) |
CharDoubleHashMap |
withoutKey(char key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArrayasLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListputPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectcontainsValue, forEachValue, tapallSatisfy, 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, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic CharDoubleHashMap()
public CharDoubleHashMap(int initialCapacity)
public CharDoubleHashMap(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)
equals in interface CharDoubleMapequals in class Objectpublic int hashCode()
hashCode in interface CharDoubleMaphashCode in class Objectpublic String toString()
toString in interface CharDoubleMaptoString in interface PrimitiveIterabletoString in class AbstractDoubleIterablepublic MutableDoubleIterator doubleIterator()
doubleIterator in interface DoubleIterabledoubleIterator in interface MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface DoubleIterablepublic void clear()
clear in interface MutableDoubleValuesMapclear in interface MutableCharKeysMappublic void put(char key,
double value)
put in interface MutableCharDoubleMappublic void putAll(CharDoubleMap map)
putAll in interface MutableCharDoubleMappublic void updateValues(CharDoubleToDoubleFunction function)
updateValues in interface MutableCharDoubleMappublic void removeKey(char key)
removeKey in interface MutableCharDoubleMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface MutableCharDoubleMappublic double removeKeyIfAbsent(char key,
double value)
removeKeyIfAbsent in interface MutableCharDoubleMappublic double getIfAbsentPut(char key,
double value)
getIfAbsentPut in interface MutableCharDoubleMappublic double getAndPut(char key,
double putValue,
double defaultValue)
getAndPut in interface MutableCharDoubleMappublic double getIfAbsentPut(char key,
DoubleFunction0 function)
getIfAbsentPut in interface MutableCharDoubleMappublic <P> double getIfAbsentPutWith(char key,
DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharDoubleMappublic double getIfAbsentPutWithKey(char key,
CharToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableCharDoubleMappublic double addToValue(char key,
double toBeAdded)
addToValue in interface MutableCharDoubleMappublic double updateValue(char key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
updateValue in interface MutableCharDoubleMappublic CharDoubleHashMap withKeyValue(char key1, double value1)
withKeyValue in interface 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 MutableCharDoubleMappublic CharDoubleHashMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharDoubleMappublic MutableCharDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableCharDoubleMappublic MutableCharDoubleMap asSynchronized()
asSynchronized in interface MutableCharDoubleMappublic ImmutableCharDoubleMap toImmutable()
toImmutable in interface CharDoubleMappublic double get(char key)
get in interface CharDoubleMappublic double getIfAbsent(char key,
double ifAbsent)
getIfAbsent in interface CharDoubleMappublic double getOrThrow(char key)
getOrThrow in interface CharDoubleMappublic boolean containsKey(char key)
containsKey in interface CharDoubleMapcontainsKey in interface CharKeysMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharDoubleMapforEachKey in interface CharKeysMappublic void forEachKeyValue(CharDoubleProcedure procedure)
forEachKeyValue in interface CharDoubleMappublic LazyCharIterable keysView()
keysView in interface CharDoubleMappublic RichIterable<CharDoublePair> keyValuesView()
keyValuesView in interface CharDoubleMappublic MutableDoubleCharMap flipUniqueValues()
flipUniqueValues in interface CharDoubleMapflipUniqueValues in interface MutableCharDoubleMappublic CharDoubleHashMap select(CharDoublePredicate predicate)
select in interface CharDoubleMapselect in interface MutableCharDoubleMappublic CharDoubleHashMap reject(CharDoublePredicate predicate)
reject in interface CharDoubleMapreject in interface 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 MutableCharSet keySet()
keySet in interface CharDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2022. All rights reserved.