public class IntDoubleHashMap extends AbstractMutableDoubleValuesMap implements org.eclipse.collections.api.map.primitive.MutableIntDoubleMap, Externalizable, MutableIntKeysMap
| Constructor and Description |
|---|
IntDoubleHashMap() |
IntDoubleHashMap(int initialCapacity) |
IntDoubleHashMap(org.eclipse.collections.api.map.primitive.IntDoubleMap map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(int key,
double toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableIntDoubleMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableIntDoubleMap |
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(int key) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntDoubleProcedure procedure) |
double |
get(int key) |
double |
getIfAbsent(int key,
double ifAbsent) |
double |
getIfAbsentPut(int key,
double value) |
double |
getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToDoubleFunction function) |
double |
getOrThrow(int 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.MutableIntSet |
keySet() |
org.eclipse.collections.api.LazyIntIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntDoublePair> |
keyValuesView() |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3) |
static IntDoubleHashMap |
newWithKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3,
int key4,
double value4) |
void |
put(int key,
double value) |
void |
putAll(org.eclipse.collections.api.map.primitive.IntDoubleMap map) |
void |
readExternal(ObjectInput in) |
IntDoubleHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.IntDoublePredicate predicate) |
void |
remove(int key) |
void |
removeKey(int key) |
double |
removeKeyIfAbsent(int key,
double value) |
IntDoubleHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.IntDoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableIntDoubleMap |
toImmutable() |
String |
toString() |
double |
updateValue(int key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
values() |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2) |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3) |
IntDoubleHashMap |
withKeysValues(int key1,
double value1,
int key2,
double value2,
int key3,
double value3,
int key4,
double value4) |
IntDoubleHashMap |
withKeyValue(int key1,
double value1) |
IntDoubleHashMap |
withoutAllKeys(org.eclipse.collections.api.IntIterable keys) |
IntDoubleHashMap |
withoutKey(int 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 IntDoubleHashMap()
public IntDoubleHashMap(int initialCapacity)
public IntDoubleHashMap(org.eclipse.collections.api.map.primitive.IntDoubleMap map)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2, int key3, double value3)
public static IntDoubleHashMap newWithKeysValues(int key1, double value1, int key2, double value2, int key3, double value3, int key4, double value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.IntDoubleMaptoString 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 MutableIntKeysMappublic void put(int key,
double value)
put in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic void putAll(org.eclipse.collections.api.map.primitive.IntDoubleMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic void removeKey(int key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMapremoveKey in interface MutableIntKeysMappublic void remove(int key)
remove in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double removeKeyIfAbsent(int key,
double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double getIfAbsentPut(int key,
double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double getIfAbsentPut(int key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic <P> double getIfAbsentPutWith(int key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double getIfAbsentPutWithKey(int key,
org.eclipse.collections.api.block.function.primitive.IntToDoubleFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double addToValue(int key,
double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic double updateValue(int key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic IntDoubleHashMap withKeyValue(int key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2)
public IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2, int key3, double value3)
public IntDoubleHashMap withKeysValues(int key1, double value1, int key2, double value2, int key3, double value3, int key4, double value4)
public IntDoubleHashMap withoutKey(int key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic IntDoubleHashMap withoutAllKeys(org.eclipse.collections.api.IntIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic org.eclipse.collections.api.map.primitive.MutableIntDoubleMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic org.eclipse.collections.api.map.primitive.MutableIntDoubleMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic org.eclipse.collections.api.map.primitive.ImmutableIntDoubleMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic double get(int key)
get in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic double getIfAbsent(int key,
double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic double getOrThrow(int key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic boolean containsKey(int key)
containsKey in interface org.eclipse.collections.api.map.primitive.IntDoubleMapcontainsKey in interface IntKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.IntDoubleMapforEachKey in interface IntKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.IntDoubleProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic org.eclipse.collections.api.LazyIntIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.IntDoublePair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic IntDoubleHashMap select(org.eclipse.collections.api.block.predicate.primitive.IntDoublePredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.IntDoubleMapselect in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic IntDoubleHashMap reject(org.eclipse.collections.api.block.predicate.primitive.IntDoublePredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.IntDoubleMapreject in interface org.eclipse.collections.api.map.primitive.MutableIntDoubleMappublic 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.MutableIntSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.IntDoubleMappublic org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.DoubleValuesMapCopyright © 2004–2017. All rights reserved.