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 aMutableShortDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableDoubleIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableShortDoubleMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedShortDoubleMap(MutableShortDoubleMap map)SynchronizedShortDoubleMap(MutableShortDoubleMap map, Object newLock)
-
Method Summary
-
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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortDoubleMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortDoubleMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
SynchronizedShortDoubleMap
public SynchronizedShortDoubleMap(MutableShortDoubleMap map)
-
SynchronizedShortDoubleMap
public SynchronizedShortDoubleMap(MutableShortDoubleMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(short key, double value)- Specified by:
putin interfaceMutableShortDoubleMap
-
putPair
public void putPair(ShortDoublePair keyValuePair)
- Specified by:
putPairin interfaceMutableShortDoubleMap
-
putAll
public void putAll(ShortDoubleMap map)
- Specified by:
putAllin interfaceMutableShortDoubleMap
-
updateValues
public void updateValues(ShortDoubleToDoubleFunction function)
- 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
public double getIfAbsentPut(short key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(short key, ShortToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(short key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortDoubleMap
-
updateValue
public double updateValue(short key, double initialValueIfAbsent, DoubleToDoubleFunction function)- 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
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortDoubleMap
-
forEachKeyValue
public void forEachKeyValue(ShortDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortDoubleMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortDoubleMap
-
keyValuesView
public RichIterable<ShortDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortDoubleMap
-
flipUniqueValues
public MutableDoubleShortMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceMutableShortDoubleMap- Specified by:
flipUniqueValuesin interfaceShortDoubleMap
-
select
public MutableShortDoubleMap select(ShortDoublePredicate predicate)
- Specified by:
selectin interfaceMutableShortDoubleMap- Specified by:
selectin interfaceShortDoubleMap
-
reject
public MutableShortDoubleMap reject(ShortDoublePredicate predicate)
- Specified by:
rejectin interfaceMutableShortDoubleMap- Specified by:
rejectin interfaceShortDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
This must be manually synchronized by the developer.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- 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
public MutableDoubleList 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
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
public MutableShortDoubleMap withKeyValue(short key, double value)
- Specified by:
withKeyValuein interfaceMutableShortDoubleMap
-
withoutKey
public MutableShortDoubleMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortDoubleMap
-
withoutAllKeys
public MutableShortDoubleMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortDoubleMap
-
asUnmodifiable
public MutableShortDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortDoubleMap
-
asSynchronized
public MutableShortDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortDoubleMap
-
toImmutable
public ImmutableShortDoubleMap 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
public MutableShortSet keySet()
- Specified by:
keySetin interfaceShortDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceShortDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortDoubleMap- 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, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
-