Class SynchronizedShortFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedShortFloatMap
-
- All Implemented Interfaces:
Serializable,FloatIterable,FloatValuesMap,MutableFloatValuesMap,MutableShortFloatMap,ShortFloatMap,PrimitiveIterable
public class SynchronizedShortFloatMap extends Object implements MutableShortFloatMap, Serializable
A synchronized view of aMutableShortFloatMap. 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:
MutableShortFloatMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedShortFloatMap(MutableShortFloatMap map)SynchronizedShortFloatMap(MutableShortFloatMap 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.MutableShortFloatMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortFloatMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
SynchronizedShortFloatMap
public SynchronizedShortFloatMap(MutableShortFloatMap map)
-
SynchronizedShortFloatMap
public SynchronizedShortFloatMap(MutableShortFloatMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(short key, float value)- Specified by:
putin interfaceMutableShortFloatMap
-
putPair
public void putPair(ShortFloatPair keyValuePair)
- Specified by:
putPairin interfaceMutableShortFloatMap
-
putAll
public void putAll(ShortFloatMap map)
- Specified by:
putAllin interfaceMutableShortFloatMap
-
updateValues
public void updateValues(ShortFloatToFloatFunction function)
- Specified by:
updateValuesin interfaceMutableShortFloatMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKeyin interfaceMutableShortFloatMap
-
remove
public void remove(short key)
- Specified by:
removein interfaceMutableShortFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(short key, float value)- Specified by:
removeKeyIfAbsentin interfaceMutableShortFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(short key, float value)- Specified by:
getIfAbsentPutin interfaceMutableShortFloatMap
-
getAndPut
public float getAndPut(short key, float putValue, float defaultValue)- Specified by:
getAndPutin interfaceMutableShortFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(short key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(short key, ShortToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(short key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortFloatMap
-
updateValue
public float updateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableShortFloatMap
-
get
public float get(short key)
- Specified by:
getin interfaceShortFloatMap
-
getIfAbsent
public float getIfAbsent(short key, float ifAbsent)- Specified by:
getIfAbsentin interfaceShortFloatMap
-
getOrThrow
public float getOrThrow(short key)
- Specified by:
getOrThrowin interfaceShortFloatMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKeyin interfaceShortFloatMap
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValuein interfaceFloatValuesMap
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValuein interfaceFloatValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortFloatMap
-
forEachKeyValue
public void forEachKeyValue(ShortFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortFloatMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortFloatMap
-
keyValuesView
public RichIterable<ShortFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortFloatMap
-
flipUniqueValues
public MutableFloatShortMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableShortFloatMap- Specified by:
flipUniqueValuesin interfaceShortFloatMap
-
select
public MutableShortFloatMap select(ShortFloatPredicate predicate)
- Specified by:
selectin interfaceMutableShortFloatMap- Specified by:
selectin interfaceShortFloatMap
-
reject
public MutableShortFloatMap reject(ShortFloatPredicate predicate)
- Specified by:
rejectin interfaceMutableShortFloatMap- Specified by:
rejectin interfaceShortFloatMap
-
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(short key, float toBeAdded)- Specified by:
addToValuein interfaceMutableShortFloatMap
-
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 MutableShortFloatMap withKeyValue(short key, float value)
- Specified by:
withKeyValuein interfaceMutableShortFloatMap
-
withoutKey
public MutableShortFloatMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortFloatMap
-
withoutAllKeys
public MutableShortFloatMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortFloatMap
-
asUnmodifiable
public MutableShortFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortFloatMap
-
asSynchronized
public MutableShortFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortFloatMap
-
toImmutable
public ImmutableShortFloatMap toImmutable()
- Specified by:
toImmutablein interfaceShortFloatMap
-
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 MutableShortSet keySet()
- Specified by:
keySetin interfaceShortFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceShortFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortFloatMap- 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
-
-