public class CharDoubleHashMap extends AbstractMutableDoubleValuesMap implements com.gs.collections.api.map.primitive.MutableCharDoubleMap, java.io.Externalizable, MutableCharKeysMap
AbstractMutableDoubleValuesMap.AbstractDoubleValuesCollection, AbstractMutableDoubleValuesMap.SentinelValues| Constructor and Description |
|---|
CharDoubleHashMap() |
CharDoubleHashMap(com.gs.collections.api.map.primitive.CharDoubleMap map) |
CharDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(char key,
double toBeAdded) |
com.gs.collections.api.map.primitive.MutableCharDoubleMap |
asSynchronized() |
com.gs.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) |
com.gs.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharDoubleProcedure procedure) |
double |
get(char key) |
protected double |
getEmptyValue() |
double |
getIfAbsent(char key,
double ifAbsent) |
double |
getIfAbsentPut(char key,
double value) |
double |
getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToDoubleFunction function) |
protected int |
getOccupiedWithData() |
double |
getOrThrow(char key) |
protected AbstractMutableDoubleValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected double |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableCharSet |
keySet() |
com.gs.collections.api.LazyCharIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.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(com.gs.collections.api.map.primitive.CharDoubleMap map) |
void |
readExternal(java.io.ObjectInput in) |
CharDoubleHashMap |
reject(com.gs.collections.api.block.predicate.primitive.CharDoublePredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
double |
removeKeyIfAbsent(char key,
double value) |
CharDoubleHashMap |
select(com.gs.collections.api.block.predicate.primitive.CharDoublePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableCharDoubleMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(char key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
com.gs.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(com.gs.collections.api.CharIterable keys) |
CharDoubleHashMap |
withoutKey(char key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, 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(com.gs.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableDoubleValuesMapprotected AbstractMutableDoubleValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableDoubleValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableDoubleValuesMapprotected double getEmptyValue()
getEmptyValue in class AbstractMutableDoubleValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableDoubleValuesMapprotected double getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableDoubleValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.CharDoubleMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.CharDoubleMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.CharDoubleMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.CharDoubleMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.CharDoubleMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic com.gs.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface com.gs.collections.api.DoubleIterabledoubleIterator in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.DoubleIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableCharKeysMappublic void put(char key,
double value)
put in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic void putAll(com.gs.collections.api.map.primitive.CharDoubleMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic void removeKey(char key)
removeKey in interface com.gs.collections.api.map.primitive.MutableCharDoubleMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double removeKeyIfAbsent(char key,
double value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPut(char key,
double value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPut(char key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic <P> double getIfAbsentPutWith(char key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double getIfAbsentPutWithKey(char key,
com.gs.collections.api.block.function.primitive.CharToDoubleFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double addToValue(char key,
double toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic double updateValue(char key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap withKeyValue(char key1, double value1)
withKeyValue in interface com.gs.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 com.gs.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap withoutAllKeys(com.gs.collections.api.CharIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic com.gs.collections.api.map.primitive.MutableCharDoubleMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic com.gs.collections.api.map.primitive.MutableCharDoubleMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic com.gs.collections.api.map.primitive.ImmutableCharDoubleMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.CharDoubleMappublic double get(char key)
get in interface com.gs.collections.api.map.primitive.CharDoubleMappublic double getIfAbsent(char key,
double ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.CharDoubleMappublic double getOrThrow(char key)
getOrThrow in interface com.gs.collections.api.map.primitive.CharDoubleMappublic boolean containsKey(char key)
containsKey in interface com.gs.collections.api.map.primitive.CharDoubleMapcontainsKey in interface CharKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.CharDoubleMapforEachKey in interface CharKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.CharDoubleProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.CharDoubleMappublic com.gs.collections.api.LazyCharIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.CharDoubleMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.CharDoublePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.CharDoubleMappublic CharDoubleHashMap select(com.gs.collections.api.block.predicate.primitive.CharDoublePredicate predicate)
select in interface com.gs.collections.api.map.primitive.CharDoubleMapselect in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic CharDoubleHashMap reject(com.gs.collections.api.block.predicate.primitive.CharDoublePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.CharDoubleMapreject in interface com.gs.collections.api.map.primitive.MutableCharDoubleMappublic 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()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableDoubleValuesMappublic com.gs.collections.api.set.primitive.MutableCharSet keySet()
keySet in interface com.gs.collections.api.map.primitive.CharDoubleMappublic com.gs.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface com.gs.collections.api.map.primitive.DoubleValuesMap