Class SynchronizedLongCharMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedLongCharMap
-
- All Implemented Interfaces:
Serializable,CharIterable,CharValuesMap,LongCharMap,MutableCharValuesMap,MutableLongCharMap,PrimitiveIterable
public class SynchronizedLongCharMap extends Object implements MutableLongCharMap, Serializable
A synchronized view of aMutableLongCharMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableCharIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableLongCharMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedLongCharMap(MutableLongCharMap map)SynchronizedLongCharMap(MutableLongCharMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.LongCharMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableLongCharMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedLongCharMap
public SynchronizedLongCharMap(MutableLongCharMap map)
-
SynchronizedLongCharMap
public SynchronizedLongCharMap(MutableLongCharMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(long key, char value)- Specified by:
putin interfaceMutableLongCharMap
-
putPair
public void putPair(LongCharPair keyValuePair)
- Specified by:
putPairin interfaceMutableLongCharMap
-
putAll
public void putAll(LongCharMap map)
- Specified by:
putAllin interfaceMutableLongCharMap
-
updateValues
public void updateValues(LongCharToCharFunction function)
- Specified by:
updateValuesin interfaceMutableLongCharMap
-
removeKey
public void removeKey(long key)
- Specified by:
removeKeyin interfaceMutableLongCharMap
-
remove
public void remove(long key)
- Specified by:
removein interfaceMutableLongCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(long key, char value)- Specified by:
removeKeyIfAbsentin interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, char value)- Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getAndPut
public char getAndPut(long key, char putValue, char defaultValue)- Specified by:
getAndPutin interfaceMutableLongCharMap
-
getIfAbsentPut
public char getIfAbsentPut(long key, CharFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableLongCharMap
-
getIfAbsentPutWithKey
public char getIfAbsentPutWithKey(long key, LongToCharFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableLongCharMap
-
getIfAbsentPutWith
public <P> char getIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableLongCharMap
-
updateValue
public char updateValue(long key, char initialValueIfAbsent, CharToCharFunction function)- Specified by:
updateValuein interfaceMutableLongCharMap
-
get
public char get(long key)
- Specified by:
getin interfaceLongCharMap
-
getIfAbsent
public char getIfAbsent(long key, char ifAbsent)- Specified by:
getIfAbsentin interfaceLongCharMap
-
getOrThrow
public char getOrThrow(long key)
- Specified by:
getOrThrowin interfaceLongCharMap
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceLongCharMap
-
containsValue
public boolean containsValue(char value)
- Specified by:
containsValuein interfaceCharValuesMap
-
forEachValue
public void forEachValue(CharProcedure procedure)
- Specified by:
forEachValuein interfaceCharValuesMap
-
forEachKey
public void forEachKey(LongProcedure procedure)
- Specified by:
forEachKeyin interfaceLongCharMap
-
forEachKeyValue
public void forEachKeyValue(LongCharProcedure procedure)
- Specified by:
forEachKeyValuein interfaceLongCharMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(LongCharPredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceLongCharMap- Since:
- 12.0
-
keysView
public LazyLongIterable keysView()
- Specified by:
keysViewin interfaceLongCharMap
-
keyValuesView
public RichIterable<LongCharPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceLongCharMap
-
flipUniqueValues
public MutableCharLongMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceLongCharMap- Specified by:
flipUniqueValuesin interfaceMutableLongCharMap
-
select
public MutableLongCharMap select(LongCharPredicate predicate)
- Specified by:
selectin interfaceLongCharMap- Specified by:
selectin interfaceMutableLongCharMap
-
reject
public MutableLongCharMap reject(LongCharPredicate predicate)
- Specified by:
rejectin interfaceLongCharMap- Specified by:
rejectin interfaceMutableLongCharMap
-
charIterator
public MutableCharIterator charIterator()
This must be manually synchronized by the developer.- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
each
public void each(CharProcedure procedure)
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
public int count(CharPredicate predicate)
- Specified by:
countin interfaceCharIterable
-
anySatisfy
public boolean anySatisfy(CharPredicate predicate)
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
public boolean allSatisfy(CharPredicate predicate)
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
public boolean noneSatisfy(CharPredicate predicate)
- Specified by:
noneSatisfyin interfaceCharIterable
-
select
public MutableCharBag select(CharPredicate predicate)
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharValuesMap- Specified by:
selectin interfaceMutableCharValuesMap
-
reject
public MutableCharBag reject(CharPredicate predicate)
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharValuesMap- Specified by:
rejectin interfaceMutableCharValuesMap
-
collect
public <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharValuesMap- Specified by:
collectin interfaceMutableCharValuesMap
-
detectIfNone
public char detectIfNone(CharPredicate predicate, char ifNone)
- Specified by:
detectIfNonein interfaceCharIterable
-
sum
public long sum()
- Specified by:
sumin interfaceCharIterable
-
max
public char max()
- Specified by:
maxin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)
- Specified by:
maxIfEmptyin interfaceCharIterable
-
min
public char min()
- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue)
- Specified by:
minIfEmptyin interfaceCharIterable
-
average
public double average()
- Specified by:
averagein interfaceCharIterable
-
median
public double median()
- Specified by:
medianin interfaceCharIterable
-
addToValue
public char addToValue(long key, char toBeAdded)- Specified by:
addToValuein interfaceMutableLongCharMap
-
toSortedArray
public char[] toSortedArray()
- Specified by:
toSortedArrayin interfaceCharIterable
-
toSortedList
public MutableCharList toSortedList()
- Specified by:
toSortedListin interfaceCharIterable
-
toArray
public char[] toArray()
- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target)
- Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value)
- Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source)
- Specified by:
containsAllin interfaceCharIterable
-
containsAll
public boolean containsAll(CharIterable source)
- Specified by:
containsAllin interfaceCharIterable
-
toList
public MutableCharList toList()
- Specified by:
toListin interfaceCharIterable
-
toSet
public MutableCharSet toSet()
- Specified by:
toSetin interfaceCharIterable
-
toBag
public MutableCharBag toBag()
- Specified by:
toBagin interfaceCharIterable
-
asLazy
public LazyCharIterable asLazy()
- Specified by:
asLazyin interfaceCharIterable
-
withKeyValue
public MutableLongCharMap withKeyValue(long key, char value)
- Specified by:
withKeyValuein interfaceMutableLongCharMap
-
withoutKey
public MutableLongCharMap withoutKey(long key)
- Specified by:
withoutKeyin interfaceMutableLongCharMap
-
withoutAllKeys
public MutableLongCharMap withoutAllKeys(LongIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableLongCharMap
-
asUnmodifiable
public MutableLongCharMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableLongCharMap
-
asSynchronized
public MutableLongCharMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableLongCharMap
-
toImmutable
public ImmutableLongCharMap toImmutable()
- Specified by:
toImmutablein interfaceLongCharMap
-
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 interfaceLongCharMap
-
values
public MutableCharCollection values()
- Specified by:
valuesin interfaceCharValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceLongCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceLongCharMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceLongCharMap- 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, ObjectCharToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceCharIterable
-
chunk
public RichIterable<CharIterable> chunk(int size)
- Specified by:
chunkin interfaceCharIterable
-
-