Class SynchronizedByteCharMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedByteCharMap
- All Implemented Interfaces:
Serializable,CharIterable,ByteCharMap,CharValuesMap,MutableByteCharMap,MutableCharValuesMap,PrimitiveIterable
A synchronized view of a
MutableByteCharMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableCharIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharaddToValue(byte key, char toBeAdded) booleanallSatisfy(CharPredicate predicate) booleanallSatisfyKeyValue(ByteCharPredicate predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()This must be manually synchronized by the developer.chunk(int size) voidclear()<V> MutableBag<V>collect(CharToObjectFunction<? extends V> function) booleancontains(char value) booleancontainsAll(char... source) booleancontainsAll(CharIterable source) booleancontainsKey(byte key) booleancontainsValue(char value) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) booleanvoidforEachKey(ByteProcedure procedure) voidforEachKeyValue(ByteCharProcedure procedure) voidforEachValue(CharProcedure procedure) charget(byte key) chargetAndPut(byte key, char putValue, char defaultValue) chargetIfAbsent(byte key, char ifAbsent) chargetIfAbsentPut(byte key, char value) chargetIfAbsentPut(byte key, CharFunction0 function) <P> chargetIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(byte key, ByteToCharFunction function) chargetOrThrow(byte key) inthashCode()<T> TinjectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) charmax()charmaxIfEmpty(char defaultValue) doublemedian()charmin()charminIfEmpty(char defaultValue) booleannoneSatisfy(CharPredicate predicate) booleannotEmpty()voidput(byte key, char value) voidputAll(ByteCharMap map) voidputPair(ByteCharPair keyValuePair) reject(ByteCharPredicate predicate) reject(CharPredicate predicate) voidremove(byte key) voidremoveKey(byte key) charremoveKeyIfAbsent(byte key, char value) select(ByteCharPredicate predicate) select(CharPredicate predicate) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()charupdateValue(byte key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(ByteCharToCharFunction function) values()withKeyValue(byte key, char value) withoutAllKeys(ByteIterable keys) withoutKey(byte key) Methods inherited from interface org.eclipse.collections.api.map.primitive.ByteCharMap
injectIntoKeyValueMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.CharValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableByteCharMap
withAllKeyValues
-
Constructor Details
-
SynchronizedByteCharMap
-
SynchronizedByteCharMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(byte key, char value) - Specified by:
putin interfaceMutableByteCharMap
-
putPair
- Specified by:
putPairin interfaceMutableByteCharMap
-
putAll
- Specified by:
putAllin interfaceMutableByteCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableByteCharMap
-
removeKey
public void removeKey(byte key) - Specified by:
removeKeyin interfaceMutableByteCharMap
-
remove
public void remove(byte key) - Specified by:
removein interfaceMutableByteCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(byte key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableByteCharMap
-
getIfAbsentPut
public char getIfAbsentPut(byte key, char value) - Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getAndPut
public char getAndPut(byte key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableByteCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableByteCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableByteCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableByteCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableByteCharMap
-
get
public char get(byte key) - Specified by:
getin interfaceByteCharMap
-
getIfAbsent
public char getIfAbsent(byte key, char ifAbsent) - Specified by:
getIfAbsentin interfaceByteCharMap
-
getOrThrow
public char getOrThrow(byte key) - Specified by:
getOrThrowin interfaceByteCharMap
-
containsKey
public boolean containsKey(byte key) - Specified by:
containsKeyin interfaceByteCharMap
-
containsValue
public boolean containsValue(char value) - Specified by:
containsValuein interfaceCharValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceCharValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceByteCharMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceByteCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceByteCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceByteCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceByteCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceByteCharMap- Specified by:
flipUniqueValuesin interfaceMutableByteCharMap
-
select
- Specified by:
selectin interfaceByteCharMap- Specified by:
selectin interfaceMutableByteCharMap
-
reject
- Specified by:
rejectin interfaceByteCharMap- Specified by:
rejectin interfaceMutableByteCharMap
-
charIterator
This must be manually synchronized by the developer.- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
select
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharValuesMap- Specified by:
selectin interfaceMutableCharValuesMap
-
reject
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharValuesMap- Specified by:
rejectin interfaceMutableCharValuesMap
-
collect
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharValuesMap- Specified by:
collectin interfaceMutableCharValuesMap
-
detectIfNone
- 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(byte key, char toBeAdded) - Specified by:
addToValuein interfaceMutableByteCharMap
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-
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
- Specified by:
containsAllin interfaceCharIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableByteCharMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableByteCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableByteCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceByteCharMap
-
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
- Specified by:
keySetin interfaceByteCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
equals
- Specified by:
equalsin interfaceByteCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceByteCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceByteCharMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-