Class SynchronizedShortDoubleMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedShortDoubleMap
- All Implemented Interfaces:
Serializable,DoubleIterable,DoubleValuesMap,MutableDoubleValuesMap,MutableShortDoubleMap,ShortDoubleMap,PrimitiveIterable
public class SynchronizedShortDoubleMap
extends Object
implements MutableShortDoubleMap, Serializable
A synchronized view of a
MutableShortDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableDoubleIterator 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 TypeMethodDescriptiondoubleaddToValue(short key, double toBeAdded) booleanallSatisfy(DoublePredicate predicate) booleanallSatisfyKeyValue(ShortDoublePredicate predicate) booleananySatisfy(DoublePredicate 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(DoubleToObjectFunction<? extends V> function) booleancontains(double value) booleancontainsAll(double... source) booleancontainsAll(DoubleIterable source) booleancontainsKey(short key) booleancontainsValue(double value) intcount(DoublePredicate predicate) doubledetectIfNone(DoublePredicate predicate, double ifNone) This must be manually synchronized by the developer.voideach(DoubleProcedure procedure) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortDoubleProcedure procedure) voidforEachValue(DoubleProcedure procedure) doubleget(short key) doublegetAndPut(short key, double putValue, double defaultValue) doublegetIfAbsent(short key, double ifAbsent) doublegetIfAbsentPut(short key, double value) doublegetIfAbsentPut(short key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(short key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(short key, ShortToDoubleFunction function) doublegetOrThrow(short key) inthashCode()<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) doublemax()doublemaxIfEmpty(double defaultValue) doublemedian()doublemin()doubleminIfEmpty(double defaultValue) booleannoneSatisfy(DoublePredicate predicate) booleannotEmpty()voidput(short key, double value) voidputAll(ShortDoubleMap map) voidputPair(ShortDoublePair keyValuePair) reject(DoublePredicate predicate) reject(ShortDoublePredicate predicate) voidremove(short key) voidremoveKey(short key) doubleremoveKeyIfAbsent(short key, double value) select(DoublePredicate predicate) select(ShortDoublePredicate predicate) intsize()doublesum()double[]toArray()double[]toArray(double[] target) toBag()toList()toSet()double[]toString()doubleupdateValue(short key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(ShortDoubleToDoubleFunction function) values()withKeyValue(short key, double value) withoutAllKeys(ShortIterable keys) withoutKey(short key) Methods inherited from interface org.eclipse.collections.api.DoubleIterable
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.DoubleValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMap
withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortDoubleMap
injectIntoKeyValue
-
Constructor Details
-
SynchronizedShortDoubleMap
-
SynchronizedShortDoubleMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(short key, double value) - Specified by:
putin interfaceMutableShortDoubleMap
-
putPair
- Specified by:
putPairin interfaceMutableShortDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableShortDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortDoubleMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortDoubleMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(short key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(short key, double value) - Specified by:
getIfAbsentPutin interfaceMutableShortDoubleMap
-
getAndPut
public double getAndPut(short key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableShortDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortDoubleMap
-
get
public double get(short key) - Specified by:
getin interfaceShortDoubleMap
-
getIfAbsent
public double getIfAbsent(short key, double ifAbsent) - Specified by:
getIfAbsentin interfaceShortDoubleMap
-
getOrThrow
public double getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortDoubleMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortDoubleMap
-
containsValue
public boolean containsValue(double value) - Specified by:
containsValuein interfaceDoubleValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortDoubleMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortDoubleMap- Specified by:
flipUniqueValuesin interfaceShortDoubleMap
-
select
- Specified by:
selectin interfaceMutableShortDoubleMap- Specified by:
selectin interfaceShortDoubleMap
-
reject
- Specified by:
rejectin interfaceMutableShortDoubleMap- Specified by:
rejectin interfaceShortDoubleMap
-
doubleIterator
This must be manually synchronized by the developer.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue) - Specified by:
maxIfEmptyin interfaceDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue) - Specified by:
minIfEmptyin interfaceDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable
-
addToValue
public double addToValue(short key, double toBeAdded) - Specified by:
addToValuein interfaceMutableShortDoubleMap
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
- Specified by:
toSortedListin interfaceDoubleIterable
-
toArray
public double[] toArray()- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target) - Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value) - Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source) - Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
- Specified by:
toListin interfaceDoubleIterable
-
toSet
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortDoubleMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortDoubleMap
-
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 interfaceShortDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
- Specified by:
equalsin interfaceShortDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortDoubleMap- 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, ObjectDoubleToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
- Specified by:
chunkin interfaceDoubleIterable
-