Class SynchronizedLongLongMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedLongLongMap
-
- All Implemented Interfaces:
Serializable,LongIterable,LongLongMap,LongValuesMap,MutableLongLongMap,MutableLongValuesMap,PrimitiveIterable
public class SynchronizedLongLongMap extends Object implements MutableLongLongMap, Serializable
A synchronized view of aMutableLongLongMap. 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:
MutableLongLongMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedLongLongMap(MutableLongLongMap map)SynchronizedLongLongMap(MutableLongLongMap map, Object newLock)
-
Method Summary
-
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.LongLongMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongLongMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedLongLongMap
public SynchronizedLongLongMap(MutableLongLongMap map)
-
SynchronizedLongLongMap
public SynchronizedLongLongMap(MutableLongLongMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(long key, long value)- Specified by:
putin interfaceMutableLongLongMap
-
putPair
public void putPair(LongLongPair keyValuePair)
- Specified by:
putPairin interfaceMutableLongLongMap
-
putAll
public void putAll(LongLongMap map)
- Specified by:
putAllin interfaceMutableLongLongMap
-
updateValues
public void updateValues(LongLongToLongFunction function)
- Specified by:
updateValuesin interfaceMutableLongLongMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongLongMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(long key, long value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongLongMap
-
getIfAbsentPut
public long getIfAbsentPut(long key, long value)- Specified by:
getIfAbsentPutin interfaceMutableLongLongMap
-
getAndPut
public long getAndPut(long key, long putValue, long defaultValue)- Specified by:
getAndPutin interfaceMutableLongLongMap
-
getIfAbsentPut
public long getIfAbsentPut(long key, LongFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongLongMap
-
getIfAbsentPutWithKey
public long getIfAbsentPutWithKey(long key, LongToLongFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongLongMap
-
getIfAbsentPutWith
public <P> long getIfAbsentPutWith(long key, LongFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongLongMap
-
updateValue
public long updateValue(long key, long initialValueIfAbsent, LongToLongFunction function)- Specified by:
updateValuein interfaceMutableLongLongMap
-
get
public long get(long key)
- Specified by:
getin interfaceLongLongMap
-
getIfAbsent
public long getIfAbsent(long key, long ifAbsent)- Specified by:
getIfAbsentin interfaceLongLongMap
-
getOrThrow
public long getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongLongMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongLongMap
-
containsValue
public boolean containsValue(long value)
- Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
public void forEachValue(LongProcedure procedure)
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongLongMap
-
forEachKeyValue
public void forEachKeyValue(LongLongProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongLongMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(LongLongPredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceLongLongMap- Since:
- 12.0
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongLongMap
-
keyValuesView
public RichIterable<LongLongPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongLongMap
-
flipUniqueValues
public MutableLongLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongLongMap- Specified by:
flipUniqueValuesin interfaceMutableLongLongMap
-
select
public MutableLongLongMap select(LongLongPredicate predicate)
- Specified by:
selectin interfaceLongLongMap- Specified by:
selectin interfaceMutableLongLongMap
-
reject
public MutableLongLongMap reject(LongLongPredicate predicate)
- Specified by:
rejectin interfaceLongLongMap- Specified by:
rejectin interfaceMutableLongLongMap
-
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(long key, long toBeAdded)- Specified by:
addToValuein interfaceMutableLongLongMap
-
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 MutableLongLongMap withKeyValue(long key, long value)
- Specified by:
withKeyValuein interfaceMutableLongLongMap
-
withoutKey
public MutableLongLongMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongLongMap
-
withoutAllKeys
public MutableLongLongMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongLongMap
-
asUnmodifiable
public MutableLongLongMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongLongMap
-
asSynchronized
public MutableLongLongMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongLongMap
-
toImmutable
public ImmutableLongLongMap toImmutable()
- Specified by:
toImmutablein interfaceLongLongMap
-
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 MutableLongSet keySet()
- Specified by:
keySetin interfaceLongLongMap
-
values
public MutableLongCollection values()
- Specified by:
valuesin interfaceLongValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceLongLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongLongMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongLongMap- 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
-
-