Class SynchronizedByteFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedByteFloatMap
-
- All Implemented Interfaces:
Serializable
,FloatIterable
,ByteFloatMap
,FloatValuesMap
,MutableByteFloatMap
,MutableFloatValuesMap
,PrimitiveIterable
public class SynchronizedByteFloatMap extends Object implements MutableByteFloatMap, Serializable
A synchronized view of aMutableByteFloatMap
. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableFloatIterator
as perCollections.synchronizedCollection(Collection)
.This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableByteFloatMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedByteFloatMap(MutableByteFloatMap map)
SynchronizedByteFloatMap(MutableByteFloatMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteFloatMap
injectIntoKeyValue
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteFloatMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedByteFloatMap
public SynchronizedByteFloatMap(MutableByteFloatMap map)
-
SynchronizedByteFloatMap
public SynchronizedByteFloatMap(MutableByteFloatMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatValuesMap
-
put
public void put(byte key, float value)
- Specified by:
put
in interfaceMutableByteFloatMap
-
putPair
public void putPair(ByteFloatPair keyValuePair)
- Specified by:
putPair
in interfaceMutableByteFloatMap
-
putAll
public void putAll(ByteFloatMap map)
- Specified by:
putAll
in interfaceMutableByteFloatMap
-
updateValues
public void updateValues(ByteFloatToFloatFunction function)
- Specified by:
updateValues
in interfaceMutableByteFloatMap
-
removeKey
public void removeKey(byte key)
- Specified by:
removeKey
in interfaceMutableByteFloatMap
-
remove
public void remove(byte key)
- Specified by:
remove
in interfaceMutableByteFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(byte key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableByteFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(byte key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableByteFloatMap
-
getAndPut
public float getAndPut(byte key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableByteFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(byte key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableByteFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(byte key, ByteToFloatFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableByteFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(byte key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableByteFloatMap
-
updateValue
public float updateValue(byte key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableByteFloatMap
-
get
public float get(byte key)
- Specified by:
get
in interfaceByteFloatMap
-
getIfAbsent
public float getIfAbsent(byte key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceByteFloatMap
-
getOrThrow
public float getOrThrow(byte key)
- Specified by:
getOrThrow
in interfaceByteFloatMap
-
containsKey
public boolean containsKey(byte key)
- Specified by:
containsKey
in interfaceByteFloatMap
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValue
in interfaceFloatValuesMap
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValue
in interfaceFloatValuesMap
-
forEachKey
public void forEachKey(ByteProcedure procedure)
- Specified by:
forEachKey
in interfaceByteFloatMap
-
forEachKeyValue
public void forEachKeyValue(ByteFloatProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceByteFloatMap
-
keysView
public LazyByteIterable keysView()
- Specified by:
keysView
in interfaceByteFloatMap
-
keyValuesView
public RichIterable<ByteFloatPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceByteFloatMap
-
flipUniqueValues
public MutableFloatByteMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceByteFloatMap
- Specified by:
flipUniqueValues
in interfaceMutableByteFloatMap
-
select
public MutableByteFloatMap select(ByteFloatPredicate predicate)
- Specified by:
select
in interfaceByteFloatMap
- Specified by:
select
in interfaceMutableByteFloatMap
-
reject
public MutableByteFloatMap reject(ByteFloatPredicate predicate)
- Specified by:
reject
in interfaceByteFloatMap
- Specified by:
reject
in interfaceMutableByteFloatMap
-
floatIterator
public MutableFloatIterator floatIterator()
This must be manually synchronized by the developer.- Specified by:
floatIterator
in interfaceFloatIterable
- Specified by:
floatIterator
in interfaceMutableFloatValuesMap
-
each
public void each(FloatProcedure procedure)
- Specified by:
each
in interfaceFloatIterable
- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
count
in interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfy
in interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfy
in interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfy
in interfaceFloatIterable
-
select
public MutableFloatBag select(FloatPredicate predicate)
- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceFloatValuesMap
- Specified by:
select
in interfaceMutableFloatValuesMap
-
reject
public MutableFloatBag reject(FloatPredicate predicate)
- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceFloatValuesMap
- Specified by:
reject
in interfaceMutableFloatValuesMap
-
collect
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatValuesMap
- Specified by:
collect
in interfaceMutableFloatValuesMap
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNone
in interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceFloatIterable
-
max
public float max()
- Specified by:
max
in interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmpty
in interfaceFloatIterable
-
min
public float min()
- Specified by:
min
in interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue)
- Specified by:
minIfEmpty
in interfaceFloatIterable
-
average
public double average()
- Specified by:
average
in interfaceFloatIterable
-
median
public double median()
- Specified by:
median
in interfaceFloatIterable
-
addToValue
public float addToValue(byte key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableByteFloatMap
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArray
in interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedList
in interfaceFloatIterable
-
toArray
public float[] toArray()
- Specified by:
toArray
in interfaceFloatIterable
-
toArray
public float[] toArray(float[] target)
- Specified by:
toArray
in interfaceFloatIterable
-
contains
public boolean contains(float value)
- Specified by:
contains
in interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)
- Specified by:
containsAll
in interfaceFloatIterable
-
containsAll
public boolean containsAll(FloatIterable source)
- Specified by:
containsAll
in interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toList
in interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSet
in interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBag
in interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazy
in interfaceFloatIterable
-
withKeyValue
public MutableByteFloatMap withKeyValue(byte key, float value)
- Specified by:
withKeyValue
in interfaceMutableByteFloatMap
-
withoutKey
public MutableByteFloatMap withoutKey(byte key)
- Specified by:
withoutKey
in interfaceMutableByteFloatMap
-
withoutAllKeys
public MutableByteFloatMap withoutAllKeys(ByteIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableByteFloatMap
-
asUnmodifiable
public MutableByteFloatMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteFloatMap
-
asSynchronized
public MutableByteFloatMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteFloatMap
-
toImmutable
public ImmutableByteFloatMap toImmutable()
- Specified by:
toImmutable
in interfaceByteFloatMap
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
keySet
public MutableByteSet keySet()
- Specified by:
keySet
in interfaceByteFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceByteFloatMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceByteFloatMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceByteFloatMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunk
in interfaceFloatIterable
-
-