Class SynchronizedLongFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedLongFloatMap
-
- All Implemented Interfaces:
Serializable
,FloatIterable
,FloatValuesMap
,LongFloatMap
,MutableFloatValuesMap
,MutableLongFloatMap
,PrimitiveIterable
public class SynchronizedLongFloatMap extends Object implements MutableLongFloatMap, Serializable
A synchronized view of aMutableLongFloatMap
. 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:
MutableLongFloatMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedLongFloatMap(MutableLongFloatMap map)
SynchronizedLongFloatMap(MutableLongFloatMap map, Object newLock)
-
Method Summary
-
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.LongFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongFloatMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedLongFloatMap
public SynchronizedLongFloatMap(MutableLongFloatMap map)
-
SynchronizedLongFloatMap
public SynchronizedLongFloatMap(MutableLongFloatMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableFloatValuesMap
-
put
public void put(long key, float value)
- Specified by:
put
in interfaceMutableLongFloatMap
-
putPair
public void putPair(LongFloatPair keyValuePair)
- Specified by:
putPair
in interfaceMutableLongFloatMap
-
putAll
public void putAll(LongFloatMap map)
- Specified by:
putAll
in interfaceMutableLongFloatMap
-
updateValues
public void updateValues(LongFloatToFloatFunction function)
- Specified by:
updateValues
in interfaceMutableLongFloatMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongFloatMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(long key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongFloatMap
-
getAndPut
public float getAndPut(long key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(long key, LongToFloatFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongFloatMap
-
updateValue
public float updateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableLongFloatMap
-
get
public float get(long key)
- Specified by:
get
in interfaceLongFloatMap
-
getIfAbsent
public float getIfAbsent(long key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongFloatMap
-
getOrThrow
public float getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongFloatMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongFloatMap
-
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(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongFloatMap
-
forEachKeyValue
public void forEachKeyValue(LongFloatProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongFloatMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongFloatMap
-
keyValuesView
public RichIterable<LongFloatPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongFloatMap
-
flipUniqueValues
public MutableFloatLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongFloatMap
- Specified by:
flipUniqueValues
in interfaceMutableLongFloatMap
-
select
public MutableLongFloatMap select(LongFloatPredicate predicate)
- Specified by:
select
in interfaceLongFloatMap
- Specified by:
select
in interfaceMutableLongFloatMap
-
reject
public MutableLongFloatMap reject(LongFloatPredicate predicate)
- Specified by:
reject
in interfaceLongFloatMap
- Specified by:
reject
in interfaceMutableLongFloatMap
-
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(long key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongFloatMap
-
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 MutableLongFloatMap withKeyValue(long key, float value)
- Specified by:
withKeyValue
in interfaceMutableLongFloatMap
-
withoutKey
public MutableLongFloatMap withoutKey(long key)
- Specified by:
withoutKey
in interfaceMutableLongFloatMap
-
withoutAllKeys
public MutableLongFloatMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongFloatMap
-
asUnmodifiable
public MutableLongFloatMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongFloatMap
-
asSynchronized
public MutableLongFloatMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongFloatMap
-
toImmutable
public ImmutableLongFloatMap toImmutable()
- Specified by:
toImmutable
in interfaceLongFloatMap
-
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 MutableLongSet keySet()
- Specified by:
keySet
in interfaceLongFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceLongFloatMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongFloatMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongFloatMap
- 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
-
-