Class SynchronizedFloatLongMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedFloatLongMap
-
- All Implemented Interfaces:
Serializable,LongIterable,FloatLongMap,LongValuesMap,MutableFloatLongMap,MutableLongValuesMap,PrimitiveIterable
public class SynchronizedFloatLongMap extends Object implements MutableFloatLongMap, Serializable
A synchronized view of aMutableFloatLongMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableLongIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableFloatLongMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedFloatLongMap(MutableFloatLongMap map)SynchronizedFloatLongMap(MutableFloatLongMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatLongMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedFloatLongMap
public SynchronizedFloatLongMap(MutableFloatLongMap map)
-
SynchronizedFloatLongMap
public SynchronizedFloatLongMap(MutableFloatLongMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(float key, long value)- Specified by:
putin interfaceMutableFloatLongMap
-
putPair
public void putPair(FloatLongPair keyValuePair)
- Specified by:
putPairin interfaceMutableFloatLongMap
-
putAll
public void putAll(FloatLongMap map)
- Specified by:
putAllin interfaceMutableFloatLongMap
-
updateValues
public void updateValues(FloatLongToLongFunction function)
- Specified by:
updateValuesin interfaceMutableFloatLongMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatLongMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(float key, long value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatLongMap
-
getIfAbsentPut
public long getIfAbsentPut(float key, long value)- Specified by:
getIfAbsentPutin interfaceMutableFloatLongMap
-
getAndPut
public long getAndPut(float key, long putValue, long defaultValue)- Specified by:
getAndPutin interfaceMutableFloatLongMap
-
getIfAbsentPut
public long getIfAbsentPut(float key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(float key, FloatToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(float key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatLongMap
-
updateValue
public long updateValue(float key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableFloatLongMap
-
get
public long get(float key)
- Specified by:
getin interfaceFloatLongMap
-
getIfAbsent
public long getIfAbsent(float key, long ifAbsent)- Specified by:
getIfAbsentin interfaceFloatLongMap
-
getOrThrow
public long getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatLongMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatLongMap
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatLongMap
-
forEachKeyValue
public void forEachKeyValue(FloatLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatLongMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatLongMap
-
keyValuesView
public RichIterable<FloatLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatLongMap
-
flipUniqueValues
public MutableLongFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatLongMap- Specified by:
flipUniqueValuesin interfaceMutableFloatLongMap
-
select
public MutableFloatLongMap select(FloatLongPredicate predicate)
- Specified by:
selectin interfaceFloatLongMap- Specified by:
selectin interfaceMutableFloatLongMap
-
reject
public MutableFloatLongMap reject(FloatLongPredicate predicate)
- Specified by:
rejectin interfaceFloatLongMap- Specified by:
rejectin interfaceMutableFloatLongMap
-
longIterator
public MutableLongIterator longIterator()
This must be manually synchronized by the developer.- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
each
public void each(LongProcedure procedure)
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
countin interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
public MutableLongBag select(LongPredicate predicate)
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongValuesMap- Specified by:
selectin interfaceMutableLongValuesMap
-
reject
public MutableLongBag reject(LongPredicate predicate)
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongValuesMap- Specified by:
rejectin interfaceMutableLongValuesMap
-
collect
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongValuesMap- Specified by:
collectin interfaceMutableLongValuesMap
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()
- Specified by:
sumin interfaceLongIterable
-
max
public long max()
- Specified by:
maxin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmptyin interfaceLongIterable
-
min
public long min()
- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmptyin interfaceLongIterable
-
average
public double average()
- Specified by:
averagein interfaceLongIterable
-
median
public double median()
- Specified by:
medianin interfaceLongIterable
-
addToValue
public long addToValue(float key, long toBeAdded)- Specified by:
addToValuein interfaceMutableFloatLongMap
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArrayin interfaceLongIterable
-
toSortedList
public MutableLongList toSortedList()
- Specified by:
toSortedListin interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value)
- Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAllin interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAllin interfaceLongIterable
-
toList
public MutableLongList toList()
- Specified by:
toListin interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSetin interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBagin interfaceLongIterable
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazyin interfaceLongIterable
-
withKeyValue
public MutableFloatLongMap withKeyValue(float key, long value)
- Specified by:
withKeyValuein interfaceMutableFloatLongMap
-
withoutKey
public MutableFloatLongMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatLongMap
-
withoutAllKeys
public MutableFloatLongMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatLongMap
-
asUnmodifiable
public MutableFloatLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatLongMap
-
asSynchronized
public MutableFloatLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatLongMap
-
toImmutable
public ImmutableFloatLongMap toImmutable()
- Specified by:
toImmutablein interfaceFloatLongMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceFloatLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatLongMap- 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, ObjectLongToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunkin interfaceLongIterable
-
-