public class FloatDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableFloatDoubleMap, Externalizable, MutableFloatKeysMap
Constructor and Description |
---|
FloatDoubleHashMap() |
FloatDoubleHashMap(FloatDoubleMap map) |
FloatDoubleHashMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
double |
addToValue(float key,
double toBeAdded) |
MutableFloatDoubleMap |
asSynchronized() |
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) |
MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatDoubleProcedure procedure) |
double |
get(float key) |
double |
getIfAbsent(float key,
double ifAbsent) |
double |
getIfAbsentPut(float key,
double value) |
double |
getIfAbsentPut(float key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(float key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(float key,
FloatToDoubleFunction function) |
double |
getOrThrow(float key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
<V> V |
injectInto(V injectedValue,
ObjectDoubleToObjectFunction<? super V,? extends V> function) |
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<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(FloatDoubleMap map) |
void |
readExternal(ObjectInput in) |
FloatDoubleHashMap |
reject(FloatDoublePredicate predicate) |
void |
remove(float key) |
void |
removeKey(float key) |
double |
removeKeyIfAbsent(float key,
double value) |
FloatDoubleHashMap |
select(FloatDoublePredicate predicate) |
ImmutableFloatDoubleMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
double |
updateValue(float key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
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(FloatIterable keys) |
FloatDoubleHashMap |
withoutKey(float key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArray
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select
containsValue, forEachValue
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
isEmpty, notEmpty, size
public FloatDoubleHashMap()
public FloatDoubleHashMap(int initialCapacity)
public FloatDoubleHashMap(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)
public boolean equals(Object obj)
FloatDoubleMap
Map.equals(Object)
.equals
in interface FloatDoubleMap
equals
in class Object
public int hashCode()
FloatDoubleMap
Map.hashCode()
.hashCode
in interface FloatDoubleMap
hashCode
in class Object
public String toString()
PrimitiveIterable
toString
in interface FloatDoubleMap
toString
in interface PrimitiveIterable
toString
in class AbstractDoubleIterable
public MutableDoubleIterator doubleIterator()
doubleIterator
in interface DoubleIterable
doubleIterator
in interface MutableDoubleValuesMap
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto
in interface DoubleIterable
public void clear()
clear
in interface MutableDoubleValuesMap
clear
in interface MutableFloatKeysMap
public void put(float key, double value)
put
in interface MutableFloatDoubleMap
public void putAll(FloatDoubleMap map)
putAll
in interface MutableFloatDoubleMap
public void removeKey(float key)
removeKey
in interface MutableFloatDoubleMap
removeKey
in interface MutableFloatKeysMap
public void remove(float key)
remove
in interface MutableFloatDoubleMap
public double removeKeyIfAbsent(float key, double value)
removeKeyIfAbsent
in interface MutableFloatDoubleMap
public double getIfAbsentPut(float key, double value)
getIfAbsentPut
in interface MutableFloatDoubleMap
public double getIfAbsentPut(float key, DoubleFunction0 function)
getIfAbsentPut
in interface MutableFloatDoubleMap
public <P> double getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)
getIfAbsentPutWith
in interface MutableFloatDoubleMap
public double getIfAbsentPutWithKey(float key, FloatToDoubleFunction function)
getIfAbsentPutWithKey
in interface MutableFloatDoubleMap
public double addToValue(float key, double toBeAdded)
addToValue
in interface MutableFloatDoubleMap
public double updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)
updateValue
in interface MutableFloatDoubleMap
public FloatDoubleHashMap withKeyValue(float key1, double value1)
withKeyValue
in interface MutableFloatDoubleMap
public 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 MutableFloatDoubleMap
public FloatDoubleHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys
in interface MutableFloatDoubleMap
public MutableFloatDoubleMap asUnmodifiable()
asUnmodifiable
in interface MutableFloatDoubleMap
public MutableFloatDoubleMap asSynchronized()
asSynchronized
in interface MutableFloatDoubleMap
public ImmutableFloatDoubleMap toImmutable()
toImmutable
in interface FloatDoubleMap
public double get(float key)
get
in interface FloatDoubleMap
public double getIfAbsent(float key, double ifAbsent)
getIfAbsent
in interface FloatDoubleMap
public double getOrThrow(float key)
getOrThrow
in interface FloatDoubleMap
public boolean containsKey(float key)
containsKey
in interface FloatDoubleMap
containsKey
in interface FloatKeysMap
public void forEachKey(FloatProcedure procedure)
forEachKey
in interface FloatDoubleMap
forEachKey
in interface FloatKeysMap
public void forEachKeyValue(FloatDoubleProcedure procedure)
forEachKeyValue
in interface FloatDoubleMap
public LazyFloatIterable keysView()
keysView
in interface FloatDoubleMap
public RichIterable<FloatDoublePair> keyValuesView()
keyValuesView
in interface FloatDoubleMap
public FloatDoubleHashMap select(FloatDoublePredicate predicate)
select
in interface FloatDoubleMap
select
in interface MutableFloatDoubleMap
public FloatDoubleHashMap reject(FloatDoublePredicate predicate)
reject
in interface FloatDoubleMap
reject
in interface MutableFloatDoubleMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void compact()
public MutableFloatSet keySet()
keySet
in interface FloatDoubleMap
public MutableDoubleCollection values()
values
in interface DoubleValuesMap
Copyright © 2004–2016. All rights reserved.