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 theMutableFloatIteratoras 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:
clearin interfaceMutableFloatValuesMap
-
put
public void put(long key, float value)- Specified by:
putin interfaceMutableLongFloatMap
-
putPair
public void putPair(LongFloatPair keyValuePair)
- Specified by:
putPairin interfaceMutableLongFloatMap
-
putAll
public void putAll(LongFloatMap map)
- Specified by:
putAllin interfaceMutableLongFloatMap
-
updateValues
public void updateValues(LongFloatToFloatFunction function)
- Specified by:
updateValuesin interfaceMutableLongFloatMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongFloatMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(long key, float value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, float value)- Specified by:
getIfAbsentPutin interfaceMutableLongFloatMap
-
getAndPut
public float getAndPut(long key, float putValue, float defaultValue)- Specified by:
getAndPutin interfaceMutableLongFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(long key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(long key, LongToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongFloatMap
-
updateValue
public float updateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableLongFloatMap
-
get
public float get(long key)
- Specified by:
getin interfaceLongFloatMap
-
getIfAbsent
public float getIfAbsent(long key, float ifAbsent)- Specified by:
getIfAbsentin interfaceLongFloatMap
-
getOrThrow
public float getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongFloatMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongFloatMap
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValuein interfaceFloatValuesMap
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValuein interfaceFloatValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongFloatMap
-
forEachKeyValue
public void forEachKeyValue(LongFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongFloatMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongFloatMap
-
keyValuesView
public RichIterable<LongFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongFloatMap
-
flipUniqueValues
public MutableFloatLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongFloatMap- Specified by:
flipUniqueValuesin interfaceMutableLongFloatMap
-
select
public MutableLongFloatMap select(LongFloatPredicate predicate)
- Specified by:
selectin interfaceLongFloatMap- Specified by:
selectin interfaceMutableLongFloatMap
-
reject
public MutableLongFloatMap reject(LongFloatPredicate predicate)
- Specified by:
rejectin interfaceLongFloatMap- Specified by:
rejectin interfaceMutableLongFloatMap
-
floatIterator
public MutableFloatIterator floatIterator()
This must be manually synchronized by the developer.- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
each
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfyin interfaceFloatIterable
-
select
public MutableFloatBag select(FloatPredicate predicate)
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatValuesMap- Specified by:
selectin interfaceMutableFloatValuesMap
-
reject
public MutableFloatBag reject(FloatPredicate predicate)
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatValuesMap- Specified by:
rejectin interfaceMutableFloatValuesMap
-
collect
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatValuesMap- Specified by:
collectin interfaceMutableFloatValuesMap
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- 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(long key, float toBeAdded)- Specified by:
addToValuein interfaceMutableLongFloatMap
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
public MutableFloatList 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
public boolean containsAll(FloatIterable source)
- Specified by:
containsAllin interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toListin interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSetin interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazyin interfaceFloatIterable
-
withKeyValue
public MutableLongFloatMap withKeyValue(long key, float value)
- Specified by:
withKeyValuein interfaceMutableLongFloatMap
-
withoutKey
public MutableLongFloatMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongFloatMap
-
withoutAllKeys
public MutableLongFloatMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongFloatMap
-
asUnmodifiable
public MutableLongFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongFloatMap
-
asSynchronized
public MutableLongFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongFloatMap
-
toImmutable
public ImmutableLongFloatMap toImmutable()
- Specified by:
toImmutablein interfaceLongFloatMap
-
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
public MutableLongSet keySet()
- Specified by:
keySetin interfaceLongFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceLongFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongFloatMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
-