Class SynchronizedFloatShortMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedFloatShortMap
- All Implemented Interfaces:
Serializable,FloatShortMap,MutableFloatShortMap,MutableShortValuesMap,ShortValuesMap,PrimitiveIterable,ShortIterable
A synchronized view of a
MutableFloatShortMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableShortIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(float key, short toBeAdded) booleanallSatisfy(ShortPredicate predicate) booleanallSatisfyKeyValue(FloatShortPredicate predicate) booleananySatisfy(ShortPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableBag<V>collect(ShortToObjectFunction<? extends V> function) booleancontains(short value) booleancontainsAll(short... source) booleancontainsAll(ShortIterable source) booleancontainsKey(float key) booleancontainsValue(short value) intcount(ShortPredicate predicate) shortdetectIfNone(ShortPredicate predicate, short ifNone) voideach(ShortProcedure procedure) booleanvoidforEachKey(FloatProcedure procedure) voidforEachKeyValue(FloatShortProcedure procedure) voidforEachValue(ShortProcedure procedure) shortget(float key) shortgetAndPut(float key, short putValue, short defaultValue) shortgetIfAbsent(float key, short ifAbsent) shortgetIfAbsentPut(float key, short value) shortgetIfAbsentPut(float key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(float key, FloatToShortFunction function) shortgetOrThrow(float key) inthashCode()<T> TinjectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) shortmax()shortmaxIfEmpty(short defaultValue) doublemedian()shortmin()shortminIfEmpty(short defaultValue) booleannoneSatisfy(ShortPredicate predicate) booleannotEmpty()voidput(float key, short value) voidputAll(FloatShortMap map) voidputPair(FloatShortPair keyValuePair) reject(FloatShortPredicate predicate) reject(ShortPredicate predicate) voidremove(float key) voidremoveKey(float key) shortremoveKeyIfAbsent(float key, short value) select(FloatShortPredicate predicate) select(ShortPredicate predicate) This must be manually synchronized by the developer.intsize()longsum()short[]toArray()short[]toArray(short[] target) toBag()toList()toSet()short[]toString()shortupdateValue(float key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(FloatShortToShortFunction function) values()withKeyValue(float key, short value) withoutAllKeys(FloatIterable keys) withoutKey(float key) Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatShortMap
withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.ShortIterable
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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortValuesMap
tap
-
Constructor Details
-
SynchronizedFloatShortMap
-
SynchronizedFloatShortMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableShortValuesMap
-
put
public void put(float key, short value) - Specified by:
putin interfaceMutableFloatShortMap
-
putPair
- Specified by:
putPairin interfaceMutableFloatShortMap
-
putAll
- Specified by:
putAllin interfaceMutableFloatShortMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableFloatShortMap
-
removeKey
public void removeKey(float key) - Specified by:
removeKeyin interfaceMutableFloatShortMap
-
remove
public void remove(float key) - Specified by:
removein interfaceMutableFloatShortMap
-
removeKeyIfAbsent
public short removeKeyIfAbsent(float key, short value) - Specified by:
removeKeyIfAbsentin interfaceMutableFloatShortMap
-
getIfAbsentPut
public short getIfAbsentPut(float key, short value) - Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getAndPut
public short getAndPut(float key, short putValue, short defaultValue) - Specified by:
getAndPutin interfaceMutableFloatShortMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableFloatShortMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatShortMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableFloatShortMap
-
updateValue
- Specified by:
updateValuein interfaceMutableFloatShortMap
-
get
public short get(float key) - Specified by:
getin interfaceFloatShortMap
-
getIfAbsent
public short getIfAbsent(float key, short ifAbsent) - Specified by:
getIfAbsentin interfaceFloatShortMap
-
getOrThrow
public short getOrThrow(float key) - Specified by:
getOrThrowin interfaceFloatShortMap
-
containsKey
public boolean containsKey(float key) - Specified by:
containsKeyin interfaceFloatShortMap
-
containsValue
public boolean containsValue(short value) - Specified by:
containsValuein interfaceShortValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceShortValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceFloatShortMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceFloatShortMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceFloatShortMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceFloatShortMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceFloatShortMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceFloatShortMap- Specified by:
flipUniqueValuesin interfaceMutableFloatShortMap
-
select
- Specified by:
selectin interfaceFloatShortMap- Specified by:
selectin interfaceMutableFloatShortMap
-
reject
- Specified by:
rejectin interfaceFloatShortMap- Specified by:
rejectin interfaceMutableFloatShortMap
-
shortIterator
This must be manually synchronized by the developer.- Specified by:
shortIteratorin interfaceMutableShortValuesMap- Specified by:
shortIteratorin interfaceShortIterable
-
each
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceShortIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceShortIterable
-
select
- Specified by:
selectin interfaceMutableShortValuesMap- Specified by:
selectin interfaceShortIterable- Specified by:
selectin interfaceShortValuesMap
-
reject
- Specified by:
rejectin interfaceMutableShortValuesMap- Specified by:
rejectin interfaceShortIterable- Specified by:
rejectin interfaceShortValuesMap
-
collect
- Specified by:
collectin interfaceMutableShortValuesMap- Specified by:
collectin interfaceShortIterable- Specified by:
collectin interfaceShortValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceShortIterable
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable
-
max
public short max()- Specified by:
maxin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmptyin interfaceShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable
-
addToValue
public short addToValue(float key, short toBeAdded) - Specified by:
addToValuein interfaceMutableFloatShortMap
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
- Specified by:
toSortedListin interfaceShortIterable
-
toArray
public short[] toArray()- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target) - Specified by:
toArrayin interfaceShortIterable
-
contains
public boolean contains(short value) - Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source) - Specified by:
containsAllin interfaceShortIterable
-
containsAll
- Specified by:
containsAllin interfaceShortIterable
-
toList
- Specified by:
toListin interfaceShortIterable
-
toSet
- Specified by:
toSetin interfaceShortIterable
-
toBag
- Specified by:
toBagin interfaceShortIterable
-
asLazy
- Specified by:
asLazyin interfaceShortIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableFloatShortMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableFloatShortMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableFloatShortMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatShortMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatShortMap
-
toImmutable
- Specified by:
toImmutablein interfaceFloatShortMap
-
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
- Specified by:
keySetin interfaceFloatShortMap
-
values
- Specified by:
valuesin interfaceShortValuesMap
-
equals
- Specified by:
equalsin interfaceFloatShortMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatShortMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceFloatShortMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceShortIterable
-
chunk
- Specified by:
chunkin interfaceShortIterable
-