Class SynchronizedCharFloatMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedCharFloatMap
- All Implemented Interfaces:
Serializable,FloatIterable,CharFloatMap,FloatValuesMap,MutableCharFloatMap,MutableFloatValuesMap,PrimitiveIterable
A synchronized view of a
MutableCharFloatMap. 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(char key, float toBeAdded) booleanallSatisfy(FloatPredicate predicate) booleanallSatisfyKeyValue(CharFloatPredicate 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(char key) booleancontainsValue(float value) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) booleanThis must be manually synchronized by the developer.voidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharFloatProcedure procedure) voidforEachValue(FloatProcedure procedure) floatget(char key) floatgetAndPut(char key, float putValue, float defaultValue) floatgetIfAbsent(char key, float ifAbsent) floatgetIfAbsentPut(char key, float value) floatgetIfAbsentPut(char key, FloatFunction0 function) <P> floatgetIfAbsentPutWith(char key, FloatFunction<? super P> function, P parameter) floatgetIfAbsentPutWithKey(char key, CharToFloatFunction function) floatgetOrThrow(char 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(char key, float value) voidputAll(CharFloatMap map) voidputPair(CharFloatPair keyValuePair) reject(CharFloatPredicate predicate) reject(FloatPredicate predicate) voidremove(char key) voidremoveKey(char key) floatremoveKeyIfAbsent(char key, float value) select(CharFloatPredicate predicate) select(FloatPredicate predicate) intsize()doublesum()float[]toArray()float[]toArray(float[] target) toBag()toList()toSet()float[]toString()floatupdateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function) voidupdateValues(CharFloatToFloatFunction function) values()withKeyValue(char key, float value) withoutAllKeys(CharIterable keys) withoutKey(char key) Methods inherited from interface org.eclipse.collections.api.map.primitive.CharFloatMap
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.MutableCharFloatMap
withAllKeyValues
-
Constructor Details
-
SynchronizedCharFloatMap
-
SynchronizedCharFloatMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(char key, float value) - Specified by:
putin interfaceMutableCharFloatMap
-
putPair
- Specified by:
putPairin interfaceMutableCharFloatMap
-
putAll
- Specified by:
putAllin interfaceMutableCharFloatMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharFloatMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharFloatMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(char key, float value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(char key, float value) - Specified by:
getIfAbsentPutin interfaceMutableCharFloatMap
-
getAndPut
public float getAndPut(char key, float putValue, float defaultValue) - Specified by:
getAndPutin interfaceMutableCharFloatMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharFloatMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharFloatMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharFloatMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharFloatMap
-
get
public float get(char key) - Specified by:
getin interfaceCharFloatMap
-
getIfAbsent
public float getIfAbsent(char key, float ifAbsent) - Specified by:
getIfAbsentin interfaceCharFloatMap
-
getOrThrow
public float getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharFloatMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharFloatMap
-
containsValue
public boolean containsValue(float value) - Specified by:
containsValuein interfaceFloatValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceFloatValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharFloatMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharFloatMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharFloatMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharFloatMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharFloatMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharFloatMap- Specified by:
flipUniqueValuesin interfaceMutableCharFloatMap
-
select
- Specified by:
selectin interfaceCharFloatMap- Specified by:
selectin interfaceMutableCharFloatMap
-
reject
- Specified by:
rejectin interfaceCharFloatMap- Specified by:
rejectin interfaceMutableCharFloatMap
-
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(char key, float toBeAdded) - Specified by:
addToValuein interfaceMutableCharFloatMap
-
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 interfaceMutableCharFloatMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharFloatMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharFloatMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharFloatMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharFloatMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharFloatMap
-
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 interfaceCharFloatMap
-
values
- Specified by:
valuesin interfaceFloatValuesMap
-
equals
- Specified by:
equalsin interfaceCharFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharFloatMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharFloatMap- 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
-