public class FloatDoubleHashMap extends AbstractMutableDoubleValuesMap implements com.gs.collections.api.map.primitive.MutableFloatDoubleMap, java.io.Externalizable, MutableFloatKeysMap
AbstractMutableDoubleValuesMap.AbstractDoubleValuesCollection, AbstractMutableDoubleValuesMap.SentinelValues| Constructor and Description |
|---|
FloatDoubleHashMap() |
FloatDoubleHashMap(com.gs.collections.api.map.primitive.FloatDoubleMap map) |
FloatDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(float key,
double toBeAdded) |
com.gs.collections.api.map.primitive.MutableFloatDoubleMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableFloatDoubleMap |
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(float 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.FloatProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatDoubleProcedure procedure) |
double |
get(float key) |
protected double |
getEmptyValue() |
double |
getIfAbsent(float key,
double ifAbsent) |
double |
getIfAbsentPut(float key,
double value) |
double |
getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToDoubleFunction function) |
protected int |
getOccupiedWithData() |
double |
getOrThrow(float 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.MutableFloatSet |
keySet() |
com.gs.collections.api.LazyFloatIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatDoublePair> |
keyValuesView() |
static FloatDoubleHashMap |
newWithKeysValues(float key1,
double value1) |
static FloatDoubleHashMap |
newWithKeysValues(float key1,
double value1,
float key2,
double value2) |
static FloatDoubleHashMap |
newWithKeysValues(float key1,
double value1,
float key2,
double value2,
float key3,
double value3) |
static FloatDoubleHashMap |
newWithKeysValues(float key1,
double value1,
float key2,
double value2,
float key3,
double value3,
float key4,
double value4) |
void |
put(float key,
double value) |
void |
putAll(com.gs.collections.api.map.primitive.FloatDoubleMap map) |
void |
readExternal(java.io.ObjectInput in) |
FloatDoubleHashMap |
reject(com.gs.collections.api.block.predicate.primitive.FloatDoublePredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
double |
removeKeyIfAbsent(float key,
double value) |
FloatDoubleHashMap |
select(com.gs.collections.api.block.predicate.primitive.FloatDoublePredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableFloatDoubleMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(float key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
com.gs.collections.api.collection.primitive.MutableDoubleCollection |
values() |
FloatDoubleHashMap |
withKeysValues(float key1,
double value1,
float key2,
double value2) |
FloatDoubleHashMap |
withKeysValues(float key1,
double value1,
float key2,
double value2,
float key3,
double value3) |
FloatDoubleHashMap |
withKeysValues(float key1,
double value1,
float key2,
double value2,
float key3,
double value3,
float key4,
double value4) |
FloatDoubleHashMap |
withKeyValue(float key1,
double value1) |
FloatDoubleHashMap |
withoutAllKeys(com.gs.collections.api.FloatIterable keys) |
FloatDoubleHashMap |
withoutKey(float 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 FloatDoubleHashMap()
public FloatDoubleHashMap(int initialCapacity)
public FloatDoubleHashMap(com.gs.collections.api.map.primitive.FloatDoubleMap map)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float 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.FloatDoubleMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.FloatDoubleMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.FloatDoubleMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.FloatDoubleMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.FloatDoubleMaptoString 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 MutableFloatKeysMappublic void put(float key,
double value)
put in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic void putAll(com.gs.collections.api.map.primitive.FloatDoubleMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic void removeKey(float key)
removeKey in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double removeKeyIfAbsent(float key,
double value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double getIfAbsentPut(float key,
double value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double getIfAbsentPut(float key,
com.gs.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic <P> double getIfAbsentPutWith(float key,
com.gs.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double getIfAbsentPutWithKey(float key,
com.gs.collections.api.block.function.primitive.FloatToDoubleFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double addToValue(float key,
double toBeAdded)
addToValue in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic double updateValue(float key,
double initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic FloatDoubleHashMap withKeyValue(float key1, double value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2)
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
public FloatDoubleHashMap withoutKey(float key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic FloatDoubleHashMap withoutAllKeys(com.gs.collections.api.FloatIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic com.gs.collections.api.map.primitive.MutableFloatDoubleMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic com.gs.collections.api.map.primitive.MutableFloatDoubleMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic com.gs.collections.api.map.primitive.ImmutableFloatDoubleMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic double get(float key)
get in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic double getIfAbsent(float key,
double ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic double getOrThrow(float key)
getOrThrow in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic boolean containsKey(float key)
containsKey in interface com.gs.collections.api.map.primitive.FloatDoubleMapcontainsKey in interface FloatKeysMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.FloatDoubleMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.FloatDoubleProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic com.gs.collections.api.LazyFloatIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.FloatDoublePair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic FloatDoubleHashMap select(com.gs.collections.api.block.predicate.primitive.FloatDoublePredicate predicate)
select in interface com.gs.collections.api.map.primitive.FloatDoubleMapselect in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic FloatDoubleHashMap reject(com.gs.collections.api.block.predicate.primitive.FloatDoublePredicate predicate)
reject in interface com.gs.collections.api.map.primitive.FloatDoubleMapreject in interface com.gs.collections.api.map.primitive.MutableFloatDoubleMappublic 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.MutableFloatSet keySet()
keySet in interface com.gs.collections.api.map.primitive.FloatDoubleMappublic com.gs.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface com.gs.collections.api.map.primitive.DoubleValuesMap