java.io.Externalizable, java.io.Serializable, CharIterable, CharValuesMap, DoubleCharMap, MutableCharValuesMap, MutableDoubleCharMap, PrimitiveIterable, MutableDoubleKeysMap, DoubleKeysMappublic class DoubleCharHashMap extends AbstractMutableCharValuesMap implements MutableDoubleCharMap, java.io.Externalizable, MutableDoubleKeysMap
| Constructor | Description |
|---|---|
DoubleCharHashMap() |
|
DoubleCharHashMap(int initialCapacity) |
|
DoubleCharHashMap(DoubleCharMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
char |
addToValue(double key,
char toBeAdded) |
|
MutableDoubleCharMap |
asSynchronized() |
|
MutableDoubleCharMap |
asUnmodifiable() |
|
MutableCharIterator |
charIterator() |
Returns a primitive iterator that can be used to iterate over the CharIterable in an
imperative style.
|
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(java.lang.Object obj) |
Follows the same general contract as
Map.equals(Object). |
MutableCharDoubleMap |
flipUniqueValues() |
Return the CharDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(DoubleProcedure procedure) |
|
void |
forEachKeyValue(DoubleCharProcedure procedure) |
|
char |
get(double key) |
|
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() |
Follows the same general contract as
Map.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(java.io.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() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
char |
updateValue(double key,
char initialValueIfAbsent,
CharToCharFunction 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(java.io.ObjectOutput out) |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPairappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, 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(java.lang.Object obj)
DoubleCharMapMap.equals(Object).equals in interface DoubleCharMapequals in class java.lang.Objectpublic int hashCode()
DoubleCharMapMap.hashCode().hashCode in interface DoubleCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface DoubleCharMaptoString in interface PrimitiveIterabletoString in class AbstractCharIterableAbstractCollection.toString()public MutableCharIterator charIterator()
CharIterablecharIterator 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 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 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()
DoubleCharMapflipUniqueValues 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(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void compact()
public MutableDoubleSet keySet()
keySet in interface DoubleCharMappublic MutableCharCollection values()
values in interface CharValuesMapCopyright © 2004–2018. All rights reserved.