public class DoubleIntHashMap extends AbstractMutableIntValuesMap implements org.eclipse.collections.api.map.primitive.MutableDoubleIntMap, Externalizable, MutableDoubleKeysMap
| Constructor and Description |
|---|
DoubleIntHashMap() |
DoubleIntHashMap(org.eclipse.collections.api.map.primitive.DoubleIntMap map) |
DoubleIntHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(double key,
int toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableDoubleIntMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableDoubleIntMap |
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) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure) |
int |
get(double key) |
int |
getIfAbsent(double key,
int ifAbsent) |
int |
getIfAbsentPut(double key,
int value) |
int |
getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function) |
<P> int |
getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToIntFunction function) |
int |
getOrThrow(double key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
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.DoubleIntPair> |
keyValuesView() |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3) |
static DoubleIntHashMap |
newWithKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3,
double key4,
int value4) |
void |
put(double key,
int value) |
void |
putAll(org.eclipse.collections.api.map.primitive.DoubleIntMap map) |
void |
readExternal(ObjectInput in) |
DoubleIntHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
int |
removeKeyIfAbsent(double key,
int value) |
DoubleIntHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableDoubleIntMap |
toImmutable() |
String |
toString() |
int |
updateValue(double key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function) |
org.eclipse.collections.api.collection.primitive.MutableIntCollection |
values() |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2) |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3) |
DoubleIntHashMap |
withKeysValues(double key1,
int value1,
double key2,
int value2,
double key3,
int value3,
double key4,
int value4) |
DoubleIntHashMap |
withKeyValue(double key1,
int value1) |
DoubleIntHashMap |
withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys) |
DoubleIntHashMap |
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 DoubleIntHashMap()
public DoubleIntHashMap(int initialCapacity)
public DoubleIntHashMap(org.eclipse.collections.api.map.primitive.DoubleIntMap map)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3)
public static DoubleIntHashMap newWithKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.DoubleIntMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractIntIterablepublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.IntIterableintIterator in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableIntValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
int value)
put in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic void putAll(org.eclipse.collections.api.map.primitive.DoubleIntMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic void removeKey(double key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int removeKeyIfAbsent(double key,
int value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPut(double key,
int value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPut(double key,
org.eclipse.collections.api.block.function.primitive.IntFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic <P> int getIfAbsentPutWith(double key,
org.eclipse.collections.api.block.function.primitive.IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int getIfAbsentPutWithKey(double key,
org.eclipse.collections.api.block.function.primitive.DoubleToIntFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int addToValue(double key,
int toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic int updateValue(double key,
int initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.IntToIntFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withKeyValue(double key1, int value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2)
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3)
public DoubleIntHashMap withKeysValues(double key1, int value1, double key2, int value2, double key3, int value3, double key4, int value4)
public DoubleIntHashMap withoutKey(double key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap withoutAllKeys(org.eclipse.collections.api.DoubleIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic org.eclipse.collections.api.map.primitive.MutableDoubleIntMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic org.eclipse.collections.api.map.primitive.MutableDoubleIntMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic org.eclipse.collections.api.map.primitive.ImmutableDoubleIntMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic int get(double key)
get in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic int getIfAbsent(double key,
int ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic int getOrThrow(double key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic boolean containsKey(double key)
containsKey in interface org.eclipse.collections.api.map.primitive.DoubleIntMapcontainsKey in interface DoubleKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.DoubleIntMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic org.eclipse.collections.api.LazyDoubleIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.DoubleIntPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.DoubleIntMappublic DoubleIntHashMap select(org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.DoubleIntMapselect in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic DoubleIntHashMap reject(org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.DoubleIntMapreject in interface org.eclipse.collections.api.map.primitive.MutableDoubleIntMappublic 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.DoubleIntMappublic org.eclipse.collections.api.collection.primitive.MutableIntCollection values()
values in interface org.eclipse.collections.api.map.primitive.IntValuesMapCopyright © 2004–2017. All rights reserved.