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 theMutableFloatIterator
as 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:
clear
in interfaceMutableFloatValuesMap
-
put
public void put(short key, float value)
- Specified by:
put
in interfaceMutableShortFloatMap
-
putPair
public void putPair(ShortFloatPair keyValuePair)
- Specified by:
putPair
in interfaceMutableShortFloatMap
-
putAll
public void putAll(ShortFloatMap map)
- Specified by:
putAll
in interfaceMutableShortFloatMap
-
updateValues
public void updateValues(ShortFloatToFloatFunction function)
- Specified by:
updateValues
in interfaceMutableShortFloatMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKey
in interfaceMutableShortFloatMap
-
remove
public void remove(short key)
- Specified by:
remove
in interfaceMutableShortFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(short key, float value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableShortFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(short key, float value)
- Specified by:
getIfAbsentPut
in interfaceMutableShortFloatMap
-
getAndPut
public float getAndPut(short key, float putValue, float defaultValue)
- Specified by:
getAndPut
in interfaceMutableShortFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(short key, FloatFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableShortFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(short key, ShortToFloatFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableShortFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(short key, FloatFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableShortFloatMap
-
updateValue
public float updateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function)
- Specified by:
updateValue
in interfaceMutableShortFloatMap
-
get
public float get(short key)
- Specified by:
get
in interfaceShortFloatMap
-
getIfAbsent
public float getIfAbsent(short key, float ifAbsent)
- Specified by:
getIfAbsent
in interfaceShortFloatMap
-
getOrThrow
public float getOrThrow(short key)
- Specified by:
getOrThrow
in interfaceShortFloatMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKey
in interfaceShortFloatMap
-
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(ShortProcedure procedure)
- Specified by:
forEachKey
in interfaceShortFloatMap
-
forEachKeyValue
public void forEachKeyValue(ShortFloatProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceShortFloatMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysView
in interfaceShortFloatMap
-
keyValuesView
public RichIterable<ShortFloatPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceShortFloatMap
-
flipUniqueValues
public MutableFloatShortMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceMutableShortFloatMap
- Specified by:
flipUniqueValues
in interfaceShortFloatMap
-
select
public MutableShortFloatMap select(ShortFloatPredicate predicate)
- Specified by:
select
in interfaceMutableShortFloatMap
- Specified by:
select
in interfaceShortFloatMap
-
reject
public MutableShortFloatMap reject(ShortFloatPredicate predicate)
- Specified by:
reject
in interfaceMutableShortFloatMap
- Specified by:
reject
in interfaceShortFloatMap
-
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(short key, float toBeAdded)
- Specified by:
addToValue
in interfaceMutableShortFloatMap
-
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 MutableShortFloatMap withKeyValue(short key, float value)
- Specified by:
withKeyValue
in interfaceMutableShortFloatMap
-
withoutKey
public MutableShortFloatMap withoutKey(short key)
- Specified by:
withoutKey
in interfaceMutableShortFloatMap
-
withoutAllKeys
public MutableShortFloatMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableShortFloatMap
-
asUnmodifiable
public MutableShortFloatMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortFloatMap
-
asSynchronized
public MutableShortFloatMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortFloatMap
-
toImmutable
public ImmutableShortFloatMap toImmutable()
- Specified by:
toImmutable
in interfaceShortFloatMap
-
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 MutableShortSet keySet()
- Specified by:
keySet
in interfaceShortFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
values
in interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceShortFloatMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceShortFloatMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Specified by:
toString
in interfaceShortFloatMap
- 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
-
-