public class DoubleCharHashMap extends AbstractMutableCharValuesMap implements MutableDoubleCharMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleCharHashMap() |
DoubleCharHashMap(DoubleCharMap map) |
DoubleCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(double key,
char toBeAdded) |
MutableDoubleCharMap |
asSynchronized() |
MutableDoubleCharMap |
asUnmodifiable() |
MutableCharIterator |
charIterator() |
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(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() |
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) |
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 DoubleCharHashMap()
public DoubleCharHashMap(int initialCapacity)
public DoubleCharHashMap(DoubleCharMap map)
public static DoubleCharHashMap newWithKeysValues(double key1, char value1)
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2)
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3)
public static DoubleCharHashMap newWithKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4)
public boolean equals(Object obj)
equals in interface DoubleCharMapequals in class Objectpublic int hashCode()
hashCode in interface DoubleCharMaphashCode in class Objectpublic String toString()
toString in interface DoubleCharMaptoString in interface PrimitiveIterabletoString in class AbstractCharIterablepublic MutableCharIterator charIterator()
charIterator in interface CharIterablecharIterator in interface MutableCharValuesMappublic <V> V injectInto(V injectedValue,
ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface CharIterablepublic void clear()
clear in interface MutableCharValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
char value)
put in interface MutableDoubleCharMappublic void putAll(DoubleCharMap map)
putAll in interface MutableDoubleCharMappublic void updateValues(DoubleCharToCharFunction function)
updateValues in interface MutableDoubleCharMappublic void removeKey(double key)
removeKey in interface MutableDoubleCharMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface MutableDoubleCharMappublic char removeKeyIfAbsent(double key,
char value)
removeKeyIfAbsent in interface MutableDoubleCharMappublic char getIfAbsentPut(double key,
char value)
getIfAbsentPut in interface MutableDoubleCharMappublic char getAndPut(double key,
char putValue,
char defaultValue)
getAndPut in interface MutableDoubleCharMappublic char getIfAbsentPut(double key,
CharFunction0 function)
getIfAbsentPut in interface MutableDoubleCharMappublic <P> char getIfAbsentPutWith(double key,
CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableDoubleCharMappublic char getIfAbsentPutWithKey(double key,
DoubleToCharFunction function)
getIfAbsentPutWithKey in interface MutableDoubleCharMappublic char addToValue(double key,
char toBeAdded)
addToValue in interface MutableDoubleCharMappublic char updateValue(double key,
char initialValueIfAbsent,
CharToCharFunction function)
updateValue in interface MutableDoubleCharMappublic DoubleCharHashMap withKeyValue(double key1, char value1)
withKeyValue in interface MutableDoubleCharMappublic DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2)
public DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3)
public DoubleCharHashMap withKeysValues(double key1, char value1, double key2, char value2, double key3, char value3, double key4, char value4)
public DoubleCharHashMap withoutKey(double key)
withoutKey in interface MutableDoubleCharMappublic DoubleCharHashMap withoutAllKeys(DoubleIterable keys)
withoutAllKeys in interface MutableDoubleCharMappublic MutableDoubleCharMap asUnmodifiable()
asUnmodifiable in interface MutableDoubleCharMappublic MutableDoubleCharMap asSynchronized()
asSynchronized in interface MutableDoubleCharMappublic ImmutableDoubleCharMap toImmutable()
toImmutable in interface DoubleCharMappublic char get(double key)
get in interface DoubleCharMappublic char getIfAbsent(double key,
char ifAbsent)
getIfAbsent in interface DoubleCharMappublic char getOrThrow(double key)
getOrThrow in interface DoubleCharMappublic boolean containsKey(double key)
containsKey in interface DoubleCharMapcontainsKey in interface DoubleKeysMappublic void forEachKey(DoubleProcedure procedure)
forEachKey in interface DoubleCharMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(DoubleCharProcedure procedure)
forEachKeyValue in interface DoubleCharMappublic LazyDoubleIterable keysView()
keysView in interface DoubleCharMappublic RichIterable<DoubleCharPair> keyValuesView()
keyValuesView in interface DoubleCharMappublic MutableCharDoubleMap flipUniqueValues()
flipUniqueValues in interface DoubleCharMapflipUniqueValues in interface MutableDoubleCharMappublic DoubleCharHashMap select(DoubleCharPredicate predicate)
select in interface DoubleCharMapselect in interface MutableDoubleCharMappublic DoubleCharHashMap reject(DoubleCharPredicate predicate)
reject in interface DoubleCharMapreject in interface MutableDoubleCharMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableDoubleSet keySet()
keySet in interface DoubleCharMappublic MutableCharCollection values()
values in interface CharValuesMapCopyright © 2004–2022. All rights reserved.