public class ObjectDoubleHashMapWithHashingStrategy<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>, Externalizable
| Modifier and Type | Field and Description |
|---|---|
static double |
EMPTY_VALUE |
| Constructor and Description |
|---|
ObjectDoubleHashMapWithHashingStrategy()
Deprecated.
|
ObjectDoubleHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
ObjectDoubleHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
int initialCapacity) |
ObjectDoubleHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectDoubleMap<? extends K> map) |
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(K key,
double toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyDoubleIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(double value) |
boolean |
containsAll(double... source) |
boolean |
containsAll(org.eclipse.collections.api.DoubleIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(double value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
void |
each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
boolean |
equals(Object obj) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectDoubleProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
double |
get(Object key) |
double |
getIfAbsent(Object key,
double ifAbsent) |
double |
getIfAbsentPut(K key,
double value) |
double |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super K> function) |
double |
getOrThrow(Object key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
Set<K> |
keySet() |
org.eclipse.collections.api.LazyIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectDoublePair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
double |
max() |
double |
maxIfEmpty(double defaultValue) |
double |
median() |
double |
min() |
double |
minIfEmpty(double defaultValue) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K> map) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newMap(ObjectDoubleHashMapWithHashingStrategy<K> map) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
double value1) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
double value1,
K key2,
double value2) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
double value1,
K key2,
double value2,
K key3,
double value3) |
static <K> ObjectDoubleHashMapWithHashingStrategy<K> |
newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy,
K key1,
double value1,
K key2,
double value2,
K key3,
double value3,
K key4,
double value4) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
double value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectDoubleMap<? extends K> map) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
ObjectDoubleHashMapWithHashingStrategy<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
void |
removeKeyAtIndex(K key,
int index) |
double |
removeKeyIfAbsent(K key,
double value) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
ObjectDoubleHashMapWithHashingStrategy<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate) |
int |
size() |
double |
sum() |
double[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectDoubleMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
toList() |
org.eclipse.collections.api.set.primitive.MutableDoubleSet |
toSet() |
double[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
toSortedList() |
String |
toString() |
double |
updateValue(K key,
double initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
values() |
ObjectDoubleHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
double value1,
K key2,
double value2) |
ObjectDoubleHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
double value1,
K key2,
double value2,
K key3,
double value3) |
ObjectDoubleHashMapWithHashingStrategy<K> |
withKeysValues(K key1,
double value1,
K key2,
double value2,
K key3,
double value3,
K key4,
double value4) |
ObjectDoubleHashMapWithHashingStrategy<K> |
withKeyValue(K key1,
double value1) |
ObjectDoubleHashMapWithHashingStrategy<K> |
withoutAllKeys(Iterable<? extends K> keys) |
ObjectDoubleHashMapWithHashingStrategy<K> |
withoutKey(K key) |
void |
writeExternal(ObjectOutput out) |
public static final double EMPTY_VALUE
@Deprecated public ObjectDoubleHashMapWithHashingStrategy()
public ObjectDoubleHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public ObjectDoubleHashMapWithHashingStrategy(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, int initialCapacity)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K> map)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newMap(ObjectDoubleHashMapWithHashingStrategy<K> map)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, double value1)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3)
public static <K> ObjectDoubleHashMapWithHashingStrategy<K> newWithKeysValues(org.eclipse.collections.api.block.HashingStrategy<? super K> hashingStrategy, K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4)
public String toString()
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.DoubleIterabledoubleIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double[] toArray()
toArray in interface org.eclipse.collections.api.DoubleIterablepublic boolean contains(double value)
contains in interface org.eclipse.collections.api.DoubleIterablepublic boolean containsAll(double... source)
containsAll in interface org.eclipse.collections.api.DoubleIterablepublic boolean containsAll(org.eclipse.collections.api.DoubleIterable source)
containsAll in interface org.eclipse.collections.api.DoubleIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public void put(K key, double value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectDoubleMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public void removeKeyAtIndex(K key, int index)
public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double removeKeyIfAbsent(K key, double value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double getIfAbsentPut(K key, double value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.DoubleFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public <P> double getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.DoubleFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double updateValue(K key, double initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double addToValue(K key, double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public ObjectDoubleHashMapWithHashingStrategy<K> withKeyValue(K key1, double value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2)
public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3)
public ObjectDoubleHashMapWithHashingStrategy<K> withKeysValues(K key1, double value1, K key2, double value2, K key3, double value3, K key4, double value4)
public ObjectDoubleHashMapWithHashingStrategy<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public ObjectDoubleHashMapWithHashingStrategy<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectDoubleMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public double get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public double getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public double getIfAbsent(Object key, double ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public boolean containsValue(double value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEach in interface org.eclipse.collections.api.DoubleIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
each in interface org.eclipse.collections.api.DoubleIterablepublic void forEachValue(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectDoubleProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public ObjectDoubleHashMapWithHashingStrategy<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate)
public ObjectDoubleHashMapWithHashingStrategy<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate)
public org.eclipse.collections.api.collection.primitive.MutableDoubleCollection select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface org.eclipse.collections.api.DoubleIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.collection.primitive.MutableDoubleCollection reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface org.eclipse.collections.api.DoubleIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone)
detectIfNone in interface org.eclipse.collections.api.DoubleIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.DoubleIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public int count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
count in interface org.eclipse.collections.api.DoubleIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic <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 double sum()
sum in interface org.eclipse.collections.api.DoubleIterablepublic double max()
max in interface org.eclipse.collections.api.DoubleIterablepublic double min()
min in interface org.eclipse.collections.api.DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.DoubleIterablepublic double minIfEmpty(double defaultValue)
minIfEmpty in interface org.eclipse.collections.api.DoubleIterablepublic double average()
average in interface org.eclipse.collections.api.DoubleIterablepublic double median()
median in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.list.primitive.MutableDoubleList toList()
toList in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.set.primitive.MutableDoubleSet toSet()
toSet in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag toBag()
toBag in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.LazyDoubleIterable asLazy()
asLazy in interface org.eclipse.collections.api.DoubleIterablepublic double[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.DoubleIterablepublic org.eclipse.collections.api.list.primitive.MutableDoubleList toSortedList()
toSortedList in interface org.eclipse.collections.api.DoubleIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectDoublePair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public void compact()
public Set<K> keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>public org.eclipse.collections.api.collection.primitive.MutableDoubleCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectDoubleMap<K>Copyright © 2004–2018. All rights reserved.