public class DoubleDoubleHashMap extends AbstractMutableDoubleValuesMap implements org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleDoubleHashMap() |
DoubleDoubleHashMap(org.eclipse.collections.api.map.primitive.DoubleDoubleMap map) |
DoubleDoubleHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(double key,
double toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap |
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) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleDoubleProcedure procedure) |
double |
get(double key) |
double |
getIfAbsent(double key,
double ifAbsent) |
double |
getIfAbsentPut(double key,
double value) |
double |
getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
double |
getOrThrow(double key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? 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.DoubleDoublePair> |
keyValuesView() |
static DoubleDoubleHashMap |
newWithKeysValues(double key1,
double value1) |
static DoubleDoubleHashMap |
newWithKeysValues(double key1,
double value1,
double key2,
double value2) |
static DoubleDoubleHashMap |
newWithKeysValues(double key1,
double value1,
double key2,
double value2,
double key3,
double value3) |
static DoubleDoubleHashMap |
newWithKeysValues(double key1,
double value1,
double key2,
double value2,
double key3,
double value3,
double key4,
double value4) |
void |
put(double key,
double value) |
void |
putAll(org.eclipse.collections.api.map.primitive.DoubleDoubleMap map) |
void |
readExternal(ObjectInput in) |
DoubleDoubleHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.DoubleDoublePredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
double |
removeKeyIfAbsent(double key,
double value) |
DoubleDoubleHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.DoubleDoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableDoubleDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(double key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
values() |
DoubleDoubleHashMap |
withKeysValues(double key1,
double value1,
double key2,
double value2) |
DoubleDoubleHashMap |
withKeysValues(double key1,
double value1,
double key2,
double value2,
double key3,
double value3) |
DoubleDoubleHashMap |
withKeysValues(double key1,
double value1,
double key2,
double value2,
double key3,
double value3,
double key4,
double value4) |
DoubleDoubleHashMap |
withKeyValue(double key1,
double value1) |
DoubleDoubleHashMap |
withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys) |
DoubleDoubleHashMap |
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 DoubleDoubleHashMap()
public DoubleDoubleHashMap(int initialCapacity)
public DoubleDoubleHashMap(org.eclipse.collections.api.map.primitive.DoubleDoubleMap map)
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1)
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2)
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)
public static DoubleDoubleHashMap newWithKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractDoubleIterablepublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.DoubleIterabledoubleIterator in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.DoubleIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
double value)
put in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic void putAll(org.eclipse.collections.api.map.primitive.DoubleDoubleMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic void removeKey(double key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double removeKeyIfAbsent(double key,
double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double getIfAbsentPut(double key,
double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic <P> double getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double addToValue(double key,
double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic double updateValue(double key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic DoubleDoubleHashMap withKeyValue(double key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2)
public DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2, double key3, double value3)
public DoubleDoubleHashMap withKeysValues(double key1, double value1, double key2, double value2, double key3, double value3, double key4, double value4)
public DoubleDoubleHashMap withoutKey(double key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic DoubleDoubleHashMap withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic org.eclipse.collections.api.map.primitive.ImmutableDoubleDoubleMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic double get(double key)
get in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic double getIfAbsent(double key,
double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic double getOrThrow(double key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic boolean containsKey(double key)
containsKey in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMapcontainsKey in interface DoubleKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleDoubleProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic org.eclipse.collections.api.LazyDoubleIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.DoubleDoublePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMappublic DoubleDoubleHashMap select(org.eclipse.collections.api.block.predicate.primitive.DoubleDoublePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMapselect in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic DoubleDoubleHashMap reject(org.eclipse.collections.api.block.predicate.primitive.DoubleDoublePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.DoubleDoubleMapreject in interface org.eclipse.collections.api.map.primitive.MutableDoubleDoubleMappublic 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.DoubleDoubleMappublic org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.DoubleValuesMapCopyright © 2004–2018. All rights reserved.