Class SynchronizedLongDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedLongDoubleMap
-
- All Implemented Interfaces:
Serializable
,DoubleIterable
,DoubleValuesMap
,LongDoubleMap
,MutableDoubleValuesMap
,MutableLongDoubleMap
,PrimitiveIterable
public class SynchronizedLongDoubleMap extends Object implements MutableLongDoubleMap, Serializable
A synchronized view of aMutableLongDoubleMap
. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableDoubleIterator
as perCollections.synchronizedCollection(Collection)
.This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableLongDoubleMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedLongDoubleMap(MutableLongDoubleMap map)
SynchronizedLongDoubleMap(MutableLongDoubleMap 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.LongDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedLongDoubleMap
public SynchronizedLongDoubleMap(MutableLongDoubleMap map)
-
SynchronizedLongDoubleMap
public SynchronizedLongDoubleMap(MutableLongDoubleMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableDoubleValuesMap
-
put
public void put(long key, double value)
- Specified by:
put
in interfaceMutableLongDoubleMap
-
putPair
public void putPair(LongDoublePair keyValuePair)
- Specified by:
putPair
in interfaceMutableLongDoubleMap
-
putAll
public void putAll(LongDoubleMap map)
- Specified by:
putAll
in interfaceMutableLongDoubleMap
-
updateValues
public void updateValues(LongDoubleToDoubleFunction function)
- Specified by:
updateValues
in interfaceMutableLongDoubleMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKey
in interfaceMutableLongDoubleMap
-
remove
public void remove(long key)
- Specified by:
remove
in interfaceMutableLongDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(long key, double value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, double value)
- Specified by:
getIfAbsentPut
in interfaceMutableLongDoubleMap
-
getAndPut
public double getAndPut(long key, double putValue, double defaultValue)
- Specified by:
getAndPut
in interfaceMutableLongDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(long key, DoubleFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableLongDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableLongDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableLongDoubleMap
-
updateValue
public double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)
- Specified by:
updateValue
in interfaceMutableLongDoubleMap
-
get
public double get(long key)
- Specified by:
get
in interfaceLongDoubleMap
-
getIfAbsent
public double getIfAbsent(long key, double ifAbsent)
- Specified by:
getIfAbsent
in interfaceLongDoubleMap
-
getOrThrow
public double getOrThrow(long key)
- Specified by:
getOrThrow
in interfaceLongDoubleMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKey
in interfaceLongDoubleMap
-
containsValue
public boolean containsValue(double value)
- Specified by:
containsValue
in interfaceDoubleValuesMap
-
forEachValue
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValue
in interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKey
in interfaceLongDoubleMap
-
forEachKeyValue
public void forEachKeyValue(LongDoubleProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceLongDoubleMap
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysView
in interfaceLongDoubleMap
-
keyValuesView
public RichIterable<LongDoublePair> keyValuesView()
- Specified by:
keyValuesView
in interfaceLongDoubleMap
-
flipUniqueValues
public MutableDoubleLongMap flipUniqueValues()
- Specified by:
flipUniqueValues
in interfaceLongDoubleMap
- Specified by:
flipUniqueValues
in interfaceMutableLongDoubleMap
-
select
public MutableLongDoubleMap select(LongDoublePredicate predicate)
- Specified by:
select
in interfaceLongDoubleMap
- Specified by:
select
in interfaceMutableLongDoubleMap
-
reject
public MutableLongDoubleMap reject(LongDoublePredicate predicate)
- Specified by:
reject
in interfaceLongDoubleMap
- Specified by:
reject
in interfaceMutableLongDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
This must be manually synchronized by the developer.- Specified by:
doubleIterator
in interfaceDoubleIterable
- Specified by:
doubleIterator
in interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
each
in interfaceDoubleIterable
- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
count
in interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfy
in interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfy
in interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfy
in interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
select
in interfaceDoubleIterable
- Specified by:
select
in interfaceDoubleValuesMap
- Specified by:
select
in interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
reject
in interfaceDoubleIterable
- Specified by:
reject
in interfaceDoubleValuesMap
- Specified by:
reject
in interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceDoubleIterable
- Specified by:
collect
in interfaceDoubleValuesMap
- Specified by:
collect
in interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNone
in interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sum
in interfaceDoubleIterable
-
max
public double max()
- Specified by:
max
in interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmpty
in interfaceDoubleIterable
-
min
public double min()
- Specified by:
min
in interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmpty
in interfaceDoubleIterable
-
average
public double average()
- Specified by:
average
in interfaceDoubleIterable
-
median
public double median()
- Specified by:
median
in interfaceDoubleIterable
-
addToValue
public double addToValue(long key, double toBeAdded)
- Specified by:
addToValue
in interfaceMutableLongDoubleMap
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArray
in interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedList
in interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArray
in interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArray
in interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
contains
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAll
in interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toList
in interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSet
in interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBag
in interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazy
in interfaceDoubleIterable
-
withKeyValue
public MutableLongDoubleMap withKeyValue(long key, double value)
- Specified by:
withKeyValue
in interfaceMutableLongDoubleMap
-
withoutKey
public MutableLongDoubleMap withoutKey(long key)
- Specified by:
withoutKey
in interfaceMutableLongDoubleMap
-
withoutAllKeys
public MutableLongDoubleMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableLongDoubleMap
-
asUnmodifiable
public MutableLongDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongDoubleMap
-
asSynchronized
public MutableLongDoubleMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongDoubleMap
-
toImmutable
public ImmutableLongDoubleMap toImmutable()
- Specified by:
toImmutable
in interfaceLongDoubleMap
-
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 MutableLongSet keySet()
- Specified by:
keySet
in interfaceLongDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
values
in interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceLongDoubleMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceLongDoubleMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceLongDoubleMap
- Specified by:
toString
in interfacePrimitiveIterable
- 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, ObjectDoubleToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunk
in interfaceDoubleIterable
-
-