public class DoubleFloatHashMap extends AbstractMutableFloatValuesMap implements org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleFloatHashMap() |
DoubleFloatHashMap(org.eclipse.collections.api.map.primitive.DoubleFloatMap map) |
DoubleFloatHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(double key,
float toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap |
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(double key) |
boolean |
equals(Object obj) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleFloatProcedure procedure) |
float |
get(double key) |
float |
getIfAbsent(double key,
float ifAbsent) |
float |
getIfAbsentPut(double key,
float value) |
float |
getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToFloatFunction function) |
float |
getOrThrow(double key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableDoubleSet |
keySet() |
org.eclipse.collections.api.LazyDoubleIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.DoubleFloatPair> |
keyValuesView() |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3) |
static DoubleFloatHashMap |
newWithKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3,
double key4,
float value4) |
void |
put(double key,
float value) |
void |
putAll(org.eclipse.collections.api.map.primitive.DoubleFloatMap map) |
void |
readExternal(ObjectInput in) |
DoubleFloatHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
float |
removeKeyIfAbsent(double key,
float value) |
DoubleFloatHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableDoubleFloatMap |
toImmutable() |
String |
toString() |
float |
updateValue(double key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
values() |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2) |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3) |
DoubleFloatHashMap |
withKeysValues(double key1,
float value1,
double key2,
float value2,
double key3,
float value3,
double key4,
float value4) |
DoubleFloatHashMap |
withKeyValue(double key1,
float value1) |
DoubleFloatHashMap |
withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys) |
DoubleFloatHashMap |
withoutKey(double 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, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, 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 DoubleFloatHashMap()
public DoubleFloatHashMap(int initialCapacity)
public DoubleFloatHashMap(org.eclipse.collections.api.map.primitive.DoubleFloatMap map)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.DoubleFloatMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractFloatIterablepublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablefloatIterator in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
float value)
put in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic void putAll(org.eclipse.collections.api.map.primitive.DoubleFloatMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic void removeKey(double key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float removeKeyIfAbsent(double key,
float value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPut(double key,
float value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic <P> float getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToFloatFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float addToValue(double key,
float toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic float updateValue(double key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withKeyValue(double key1, float value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2)
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)
public DoubleFloatHashMap withoutKey(double key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic org.eclipse.collections.api.map.primitive.ImmutableDoubleFloatMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic float get(double key)
get in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic float getIfAbsent(double key,
float ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic float getOrThrow(double key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic boolean containsKey(double key)
containsKey in interface org.eclipse.collections.api.map.primitive.DoubleFloatMapcontainsKey in interface DoubleKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.DoubleFloatMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleFloatProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic org.eclipse.collections.api.LazyDoubleIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.DoubleFloatPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic DoubleFloatHashMap select(org.eclipse.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.DoubleFloatMapselect in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic DoubleFloatHashMap reject(org.eclipse.collections.api.block.predicate.primitive.DoubleFloatPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.DoubleFloatMapreject in interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableDoubleSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.DoubleFloatMappublic org.eclipse.collections.api.collection.primitive.MutableFloatCollection values()
values in interface org.eclipse.collections.api.map.primitive.FloatValuesMapCopyright © 2004–2017. All rights reserved.