public class DoubleCharHashMap extends AbstractMutableCharValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleCharMap, java.io.Externalizable, MutableDoubleKeysMap
AbstractMutableCharValuesMap.AbstractCharValuesCollection, AbstractMutableCharValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleCharHashMap() |
DoubleCharHashMap(com.gs.collections.api.map.primitive.DoubleCharMap map) |
DoubleCharHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(double key,
char toBeAdded) |
com.gs.collections.api.map.primitive.MutableDoubleCharMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableDoubleCharMap |
asUnmodifiable() |
com.gs.collections.api.iterator.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(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleCharProcedure procedure) |
char |
get(double key) |
protected char |
getEmptyValue() |
char |
getIfAbsent(double key,
char ifAbsent) |
char |
getIfAbsentPut(double key,
char value) |
char |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToCharFunction function) |
protected int |
getOccupiedWithData() |
char |
getOrThrow(double key) |
protected AbstractMutableCharValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected char |
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.ObjectCharToObjectFunction<? super V,? extends V> function) |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
keySet() |
com.gs.collections.api.LazyDoubleIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.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(com.gs.collections.api.map.primitive.DoubleCharMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleCharHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleCharPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
char |
removeKeyIfAbsent(double key,
char value) |
DoubleCharHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleCharPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableDoubleCharMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
char |
updateValue(double key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function) |
com.gs.collections.api.collection.primitive.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(com.gs.collections.api.DoubleIterable keys) |
DoubleCharHashMap |
withoutKey(double 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 DoubleCharHashMap()
public DoubleCharHashMap(int initialCapacity)
public DoubleCharHashMap(com.gs.collections.api.map.primitive.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)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableCharValuesMapprotected AbstractMutableCharValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableCharValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableCharValuesMapprotected char getEmptyValue()
getEmptyValue in class AbstractMutableCharValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableCharValuesMapprotected char getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableCharValuesMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.DoubleCharMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleCharMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleCharMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleCharMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleCharMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void clear()
clear in interface com.gs.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
char value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic void putAll(com.gs.collections.api.map.primitive.DoubleCharMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleCharMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char removeKeyIfAbsent(double key,
char value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char getIfAbsentPut(double key,
char value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic <P> char getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToCharFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char addToValue(double key,
char toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic char updateValue(double key,
char initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic DoubleCharHashMap withKeyValue(double key1, char value1)
withKeyValue in interface com.gs.collections.api.map.primitive.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 com.gs.collections.api.map.primitive.MutableDoubleCharMappublic DoubleCharHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic com.gs.collections.api.map.primitive.MutableDoubleCharMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic com.gs.collections.api.map.primitive.MutableDoubleCharMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic com.gs.collections.api.map.primitive.ImmutableDoubleCharMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleCharMappublic char get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleCharMappublic char getIfAbsent(double key,
char ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleCharMappublic char getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleCharMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleCharMapcontainsKey in interface DoubleKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleCharMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleCharProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleCharMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleCharMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleCharPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleCharMappublic DoubleCharHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleCharPredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleCharMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleCharMappublic DoubleCharHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleCharPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleCharMapreject in interface com.gs.collections.api.map.primitive.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()
protected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableCharValuesMappublic com.gs.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleCharMappublic com.gs.collections.api.collection.primitive.MutableCharCollection values()
values in interface com.gs.collections.api.map.primitive.CharValuesMap