Class SynchronizedDoubleFloatMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleFloatMap
- All Implemented Interfaces:
Serializable,FloatIterable,DoubleFloatMap,FloatValuesMap,MutableDoubleFloatMap,MutableFloatValuesMap,PrimitiveIterable
public class SynchronizedDoubleFloatMap
extends Object
implements MutableDoubleFloatMap, Serializable
A synchronized view of a
MutableDoubleFloatMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableFloatIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloataddToValue(double key, float toBeAdded) booleanallSatisfy(FloatPredicate predicate) booleanallSatisfyKeyValue(DoubleFloatPredicate predicate) booleananySatisfy(FloatPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableBag<V>collect(FloatToObjectFunction<? extends V> function) booleancontains(float value) booleancontainsAll(float... source) booleancontainsAll(FloatIterable source) booleancontainsKey(double key) booleancontainsValue(float value) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) booleanThis must be manually synchronized by the developer.voidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleFloatProcedure procedure) voidforEachValue(FloatProcedure procedure) floatget(double key) floatgetAndPut(double key, float putValue, float defaultValue) floatgetIfAbsent(double key, float ifAbsent) floatgetIfAbsentPut(double key, float value) floatgetIfAbsentPut(double key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(double key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(double key, DoubleToFloatFunction function) floatgetOrThrow(double key) inthashCode()<T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) floatmax()floatmaxIfEmpty(float defaultValue) doublemedian()floatmin()floatminIfEmpty(float defaultValue) booleannoneSatisfy(FloatPredicate predicate) booleannotEmpty()voidput(double key, float value) voidputAll(DoubleFloatMap map) voidputPair(DoubleFloatPair keyValuePair) reject(DoubleFloatPredicate predicate) reject(FloatPredicate predicate) voidremove(double key) voidremoveKey(double key) floatremoveKeyIfAbsent(double key, float value) select(DoubleFloatPredicate predicate) select(FloatPredicate predicate) intsize()doublesum()float[]toArray()float[]toArray(float[] target) toBag()toList()toSet()float[]toString()floatupdateValue(double key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(DoubleFloatToFloatFunction function) values()withKeyValue(double key, float value) withoutAllKeys(DoubleIterable keys) withoutKey(double key) Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleFloatMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.FloatIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap
withAllKeyValues
-
Constructor Details
-
SynchronizedDoubleFloatMap
-
SynchronizedDoubleFloatMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(double key, float value) - Specified by:
putin interfaceMutableDoubleFloatMap
-
putPair
- Specified by:
putPairin interfaceMutableDoubleFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleFloatMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleFloatMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(double key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(double key, float value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getAndPut
public float getAndPut(double key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleFloatMap
-
get
public float get(double key) - Specified by:
getin interfaceDoubleFloatMap
-
getIfAbsent
public float getIfAbsent(double key, float ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleFloatMap
-
getOrThrow
public float getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleFloatMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleFloatMap
-
containsValue
public boolean containsValue(float value) - Specified by:
containsValuein interfaceFloatValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceFloatValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleFloatMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleFloatMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleFloatMap
-
select
- Specified by:
selectin interfaceDoubleFloatMap- Specified by:
selectin interfaceMutableDoubleFloatMap
-
reject
- Specified by:
rejectin interfaceDoubleFloatMap- Specified by:
rejectin interfaceMutableDoubleFloatMap
-
floatIterator
This must be manually synchronized by the developer.- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
each
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceFloatIterable
-
select
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatValuesMap- Specified by:
selectin interfaceMutableFloatValuesMap
-
reject
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatValuesMap- Specified by:
rejectin interfaceMutableFloatValuesMap
-
collect
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatValuesMap- Specified by:
collectin interfaceMutableFloatValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue) - Specified by:
maxIfEmptyin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue) - Specified by:
minIfEmptyin interfaceFloatIterable
-
average
public double average()- Specified by:
averagein interfaceFloatIterable
-
median
public double median()- Specified by:
medianin interfaceFloatIterable
-
addToValue
public float addToValue(double key, float toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleFloatMap
-
toSortedArray
public float[] toSortedArray()- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
- Specified by:
toSortedListin interfaceFloatIterable
-
toArray
public float[] toArray()- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target) - Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value) - Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source) - Specified by:
containsAllin interfaceFloatIterable
-
containsAll
- Specified by:
containsAllin interfaceFloatIterable
-
toList
- Specified by:
toListin interfaceFloatIterable
-
toSet
- Specified by:
toSetin interfaceFloatIterable
-
toBag
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
- Specified by:
asLazyin interfaceFloatIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleFloatMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleFloatMap
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
- Specified by:
keySetin interfaceDoubleFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
equals
- Specified by:
equalsin interfaceDoubleFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceFloatIterable
-
chunk
- Specified by:
chunkin interfaceFloatIterable
-