public final class SynchronizedObjectDoubleMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>, Serializable
MutableObjectDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
DoubleIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedObjectPrimitiveMap.stg.
MutableObjectDoubleMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| 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() |
<V1> org.eclipse.collections.api.collection.MutableCollection<V1> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V1> function) |
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()
Must be called in a synchronized block.
|
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() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> 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) |
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) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
double |
removeKeyIfAbsent(K key,
double value) |
org.eclipse.collections.api.collection.primitive.MutableDoubleCollection |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<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() |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
withKeyValue(K key,
double value) |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> |
withoutKey(K key) |
public 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 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 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 <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 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 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 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 org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate)
public org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectDoublePredicate<? super K> predicate)
public 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 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 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 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 <V1> org.eclipse.collections.api.collection.MutableCollection<V1> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V1> function)
collect in interface org.eclipse.collections.api.DoubleIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double sum()
sum in interface org.eclipse.collections.api.DoubleIterablepublic double addToValue(K key, double toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public double max()
max in interface org.eclipse.collections.api.DoubleIterablepublic double maxIfEmpty(double defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.DoubleIterablepublic double min()
min 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 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 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 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 org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> withKeyValue(K key, double value)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap<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 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 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>public 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 String toString()
public 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 <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.DoubleIterableCopyright © 2004–2017. All rights reserved.