Class SynchronizedDoubleLongMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleLongMap
-
- All Implemented Interfaces:
Serializable,LongIterable,DoubleLongMap,LongValuesMap,MutableDoubleLongMap,MutableLongValuesMap,PrimitiveIterable
public class SynchronizedDoubleLongMap extends Object implements MutableDoubleLongMap, Serializable
A synchronized view of aMutableDoubleLongMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableLongIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableDoubleLongMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleLongMap(MutableDoubleLongMap map)SynchronizedDoubleLongMap(MutableDoubleLongMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleLongMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedDoubleLongMap
public SynchronizedDoubleLongMap(MutableDoubleLongMap map)
-
SynchronizedDoubleLongMap
public SynchronizedDoubleLongMap(MutableDoubleLongMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(double key, long value)- Specified by:
putin interfaceMutableDoubleLongMap
-
putPair
public void putPair(DoubleLongPair keyValuePair)
- Specified by:
putPairin interfaceMutableDoubleLongMap
-
putAll
public void putAll(DoubleLongMap map)
- Specified by:
putAllin interfaceMutableDoubleLongMap
-
updateValues
public void updateValues(DoubleLongToLongFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleLongMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleLongMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(double key, long value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleLongMap
-
getIfAbsentPut
public long getIfAbsentPut(double key, long value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getAndPut
public long getAndPut(double key, long putValue, long defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleLongMap
-
getIfAbsentPut
public long getIfAbsentPut(double key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(double key, DoubleToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleLongMap
-
updateValue
public long updateValue(double key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableDoubleLongMap
-
get
public long get(double key)
- Specified by:
getin interfaceDoubleLongMap
-
getIfAbsent
public long getIfAbsent(double key, long ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleLongMap
-
getOrThrow
public long getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleLongMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleLongMap
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleLongMap
-
forEachKeyValue
public void forEachKeyValue(DoubleLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleLongMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleLongMap
-
keyValuesView
public RichIterable<DoubleLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleLongMap
-
flipUniqueValues
public MutableLongDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleLongMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleLongMap
-
select
public MutableDoubleLongMap select(DoubleLongPredicate predicate)
- Specified by:
selectin interfaceDoubleLongMap- Specified by:
selectin interfaceMutableDoubleLongMap
-
reject
public MutableDoubleLongMap reject(DoubleLongPredicate predicate)
- Specified by:
rejectin interfaceDoubleLongMap- Specified by:
rejectin interfaceMutableDoubleLongMap
-
longIterator
public MutableLongIterator longIterator()
This must be manually synchronized by the developer.- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
each
public void each(LongProcedure procedure)
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
countin interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
public MutableLongBag select(LongPredicate predicate)
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongValuesMap- Specified by:
selectin interfaceMutableLongValuesMap
-
reject
public MutableLongBag reject(LongPredicate predicate)
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongValuesMap- Specified by:
rejectin interfaceMutableLongValuesMap
-
collect
public <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongValuesMap- Specified by:
collectin interfaceMutableLongValuesMap
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()
- Specified by:
sumin interfaceLongIterable
-
max
public long max()
- Specified by:
maxin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmptyin interfaceLongIterable
-
min
public long min()
- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmptyin interfaceLongIterable
-
average
public double average()
- Specified by:
averagein interfaceLongIterable
-
median
public double median()
- Specified by:
medianin interfaceLongIterable
-
addToValue
public long addToValue(double key, long toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleLongMap
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArrayin interfaceLongIterable
-
toSortedList
public MutableLongList toSortedList()
- Specified by:
toSortedListin interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value)
- Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAllin interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAllin interfaceLongIterable
-
toList
public MutableLongList toList()
- Specified by:
toListin interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSetin interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBagin interfaceLongIterable
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazyin interfaceLongIterable
-
withKeyValue
public MutableDoubleLongMap withKeyValue(double key, long value)
- Specified by:
withKeyValuein interfaceMutableDoubleLongMap
-
withoutKey
public MutableDoubleLongMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleLongMap
-
withoutAllKeys
public MutableDoubleLongMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleLongMap
-
asUnmodifiable
public MutableDoubleLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleLongMap
-
asSynchronized
public MutableDoubleLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleLongMap
-
toImmutable
public ImmutableDoubleLongMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleLongMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceDoubleLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleLongMap- Specified by:
toStringin interfacePrimitiveIterable- 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, ObjectLongToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunkin interfaceLongIterable
-
-