public final class SynchronizedObjectFloatMap<K> extends Object implements org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>, Serializable
MutableObjectFloatMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
FloatIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedObjectPrimitiveMap.stg.
MutableObjectFloatMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
float |
addToValue(K key,
float toBeAdded) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate 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.LazyFloatIterable |
asLazy() |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V1> org.eclipse.collections.api.collection.MutableCollection<V1> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V1> function) |
boolean |
contains(float value) |
boolean |
containsAll(float... source) |
boolean |
containsAll(org.eclipse.collections.api.FloatIterable source) |
boolean |
containsKey(Object key) |
boolean |
containsValue(float value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
boolean |
equals(Object obj) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator()
Must be called in a synchronized block.
|
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectFloatProcedure<? super K> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
float |
get(Object key) |
float |
getIfAbsent(Object key,
float ifAbsent) |
float |
getIfAbsentPut(K key,
float value) |
float |
getIfAbsentPut(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction0 function) |
<P> float |
getIfAbsentPutWith(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function,
P parameter) |
float |
getIfAbsentPutWithKey(K key,
org.eclipse.collections.api.block.function.primitive.FloatFunction<? super K> function) |
float |
getOrThrow(Object key) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? 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.ObjectFloatPair<K>> |
keyValuesView() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
float |
max() |
float |
maxIfEmpty(float defaultValue) |
double |
median() |
float |
min() |
float |
minIfEmpty(float defaultValue) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
notEmpty() |
void |
put(K key,
float value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ObjectFloatMap<? extends K> map) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
reject(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
float |
removeKeyIfAbsent(K key,
float value) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
select(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate) |
int |
size() |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
toBag() |
org.eclipse.collections.api.map.primitive.ImmutableObjectFloatMap<K> |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toList() |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
toSet() |
float[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
toSortedList() |
String |
toString() |
float |
updateValue(K key,
float initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function) |
org.eclipse.collections.api.collection.primitive.MutableFloatCollection |
values() |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
withKeyValue(K key,
float value) |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> |
withoutKey(K key) |
public void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void put(K key, float value)
put in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void putAll(org.eclipse.collections.api.map.primitive.ObjectFloatMap<? extends K> map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void removeKey(K key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void remove(Object key)
remove in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float removeKeyIfAbsent(K key, float value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPut(K key, float value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPut(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float getIfAbsentPutWithKey(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super K> function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public <P> float getIfAbsentPutWith(K key, org.eclipse.collections.api.block.function.primitive.FloatFunction<? super P> function, P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float updateValue(K key, float initialValueIfAbsent, org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float get(Object key)
get in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public float getOrThrow(Object key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public float getIfAbsent(Object key, float ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public boolean containsKey(Object key)
containsKey in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public boolean containsValue(float value)
containsValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEachValue(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEachValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ObjectFloatProcedure<? super K> procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> select(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate)
public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> reject(org.eclipse.collections.api.block.predicate.primitive.ObjectFloatPredicate<? super K> predicate)
public org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.FloatIterablefloatIterator in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public void forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface org.eclipse.collections.api.FloatIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface org.eclipse.collections.api.FloatIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
count in interface org.eclipse.collections.api.FloatIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.collection.primitive.MutableFloatCollection select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.FloatIterableselect in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.collection.primitive.MutableFloatCollection reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.FloatIterablereject in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic <V1> org.eclipse.collections.api.collection.MutableCollection<V1> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V1> function)
collect in interface org.eclipse.collections.api.FloatIterablecollect in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public double sum()
sum in interface org.eclipse.collections.api.FloatIterablepublic float addToValue(K key, float toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public float max()
max in interface org.eclipse.collections.api.FloatIterablepublic float maxIfEmpty(float defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic float min()
min in interface org.eclipse.collections.api.FloatIterablepublic float minIfEmpty(float defaultValue)
minIfEmpty in interface org.eclipse.collections.api.FloatIterablepublic double average()
average in interface org.eclipse.collections.api.FloatIterablepublic double median()
median in interface org.eclipse.collections.api.FloatIterablepublic float[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList toSortedList()
toSortedList in interface org.eclipse.collections.api.FloatIterablepublic float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(float... source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic boolean containsAll(org.eclipse.collections.api.FloatIterable source)
containsAll in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList toList()
toList in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.set.primitive.MutableFloatSet toSet()
toSet in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.bag.primitive.MutableFloatBag toBag()
toBag in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.LazyFloatIterable asLazy()
asLazy in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> withKeyValue(K key, float value)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> withoutKey(K key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K> asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableObjectFloatMap<K>public org.eclipse.collections.api.map.primitive.ImmutableObjectFloatMap<K> toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<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.ObjectFloatMap<K>public org.eclipse.collections.api.collection.primitive.MutableFloatCollection values()
values in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public org.eclipse.collections.api.LazyIterable<K> keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<K>public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ObjectFloatPair<K>> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ObjectFloatMap<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.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.FloatIterableCopyright © 2004–2018. All rights reserved.