Class SynchronizedFloatFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedFloatFloatMap
-
- All Implemented Interfaces:
Serializable
,FloatIterable
,FloatFloatMap
,FloatValuesMap
,MutableFloatFloatMap
,MutableFloatValuesMap
,PrimitiveIterable
public class SynchronizedFloatFloatMap extends Object implements MutableFloatFloatMap, Serializable
A synchronized view of aMutableFloatFloatMap
. 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:
MutableFloatFloatMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedFloatFloatMap(MutableFloatFloatMap map)
SynchronizedFloatFloatMap(MutableFloatFloatMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatFloatMap
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.MutableFloatFloatMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedFloatFloatMap
public SynchronizedFloatFloatMap(MutableFloatFloatMap map)
-
SynchronizedFloatFloatMap
public SynchronizedFloatFloatMap(MutableFloatFloatMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatValuesMap
-
put
public void put(float key, float value)
- Specified by:
put
in interfaceMutableFloatFloatMap
-
putPair
public void putPair(FloatFloatPair keyValuePair)
- Specified by:
putPair
in interfaceMutableFloatFloatMap
-
putAll
public void putAll(FloatFloatMap map)
- Specified by:
putAll
in interfaceMutableFloatFloatMap
-
updateValues
public void updateValues(FloatFloatToFloatFunction function)
- Specified by:
updateValues
in interfaceMutableFloatFloatMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKey
in interfaceMutableFloatFloatMap
-
remove
public void remove(float key)
- Specified by:
remove
in interfaceMutableFloatFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(float key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableFloatFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(float key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatFloatMap
-
getAndPut
public float getAndPut(float key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableFloatFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(float key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableFloatFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(float key, FloatToFloatFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableFloatFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(float key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableFloatFloatMap
-
updateValue
public float updateValue(float key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableFloatFloatMap
-
get
public float get(float key)
- Specified by:
get
in interfaceFloatFloatMap
-
getIfAbsent
public float getIfAbsent(float key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceFloatFloatMap
-
getOrThrow
public float getOrThrow(float key)
- Specified by:
getOrThrow
in interfaceFloatFloatMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKey
in interfaceFloatFloatMap
-
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(FloatProcedure procedure)
- Specified by:
forEachKey
in interfaceFloatFloatMap
-
forEachKeyValue
public void forEachKeyValue(FloatFloatProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceFloatFloatMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysView
in interfaceFloatFloatMap
-
keyValuesView
public RichIterable<FloatFloatPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceFloatFloatMap
-
flipUniqueValues
public MutableFloatFloatMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceFloatFloatMap
- Specified by:
flipUniqueValues
in interfaceMutableFloatFloatMap
-
select
public MutableFloatFloatMap select(FloatFloatPredicate predicate)
- Specified by:
select
in interfaceFloatFloatMap
- Specified by:
select
in interfaceMutableFloatFloatMap
-
reject
public MutableFloatFloatMap reject(FloatFloatPredicate predicate)
- Specified by:
reject
in interfaceFloatFloatMap
- Specified by:
reject
in interfaceMutableFloatFloatMap
-
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(float key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableFloatFloatMap
-
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 MutableFloatFloatMap withKeyValue(float key, float value)
- Specified by:
withKeyValue
in interfaceMutableFloatFloatMap
-
withoutKey
public MutableFloatFloatMap withoutKey(float key)
- Specified by:
withoutKey
in interfaceMutableFloatFloatMap
-
withoutAllKeys
public MutableFloatFloatMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableFloatFloatMap
-
asUnmodifiable
public MutableFloatFloatMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatFloatMap
-
asSynchronized
public MutableFloatFloatMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatFloatMap
-
toImmutable
public ImmutableFloatFloatMap toImmutable()
- Specified by:
toImmutable
in interfaceFloatFloatMap
-
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 MutableFloatSet keySet()
- Specified by:
keySet
in interfaceFloatFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceFloatFloatMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceFloatFloatMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceFloatFloatMap
- 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
-
-