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