public class SynchronizedCharIntMap extends Object implements MutableCharIntMap, Serializable
MutableCharIntMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableIntIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableCharIntMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedCharIntMap(MutableCharIntMap map) |
SynchronizedCharIntMap(MutableCharIntMap map,
Object newLock) |
withAllKeyValuesinjectIntoKeyValuetapaverageIfEmpty, 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, toSortedListBypublic SynchronizedCharIntMap(MutableCharIntMap map)
public SynchronizedCharIntMap(MutableCharIntMap map, Object newLock)
public void clear()
clear in interface MutableIntValuesMappublic void put(char key,
int value)
put in interface MutableCharIntMappublic void putPair(CharIntPair keyValuePair)
putPair in interface MutableCharIntMappublic void putAll(CharIntMap map)
putAll in interface MutableCharIntMappublic void updateValues(CharIntToIntFunction function)
updateValues in interface MutableCharIntMappublic void removeKey(char key)
removeKey in interface MutableCharIntMappublic void remove(char key)
remove in interface MutableCharIntMappublic int removeKeyIfAbsent(char key,
int value)
removeKeyIfAbsent in interface MutableCharIntMappublic int getIfAbsentPut(char key,
int value)
getIfAbsentPut in interface MutableCharIntMappublic int getAndPut(char key,
int putValue,
int defaultValue)
getAndPut in interface MutableCharIntMappublic int getIfAbsentPut(char key,
IntFunction0 function)
getIfAbsentPut in interface MutableCharIntMappublic int getIfAbsentPutWithKey(char key,
CharToIntFunction function)
getIfAbsentPutWithKey in interface MutableCharIntMappublic <P> int getIfAbsentPutWith(char key,
IntFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableCharIntMappublic int updateValue(char key,
int initialValueIfAbsent,
IntToIntFunction function)
updateValue in interface MutableCharIntMappublic int get(char key)
get in interface CharIntMappublic int getIfAbsent(char key,
int ifAbsent)
getIfAbsent in interface CharIntMappublic int getOrThrow(char key)
getOrThrow in interface CharIntMappublic boolean containsKey(char key)
containsKey in interface CharIntMappublic boolean containsValue(int value)
containsValue in interface IntValuesMappublic void forEachValue(IntProcedure procedure)
forEachValue in interface IntValuesMappublic void forEachKey(CharProcedure procedure)
forEachKey in interface CharIntMappublic void forEachKeyValue(CharIntProcedure procedure)
forEachKeyValue in interface CharIntMappublic LazyCharIterable keysView()
keysView in interface CharIntMappublic RichIterable<CharIntPair> keyValuesView()
keyValuesView in interface CharIntMappublic MutableIntCharMap flipUniqueValues()
flipUniqueValues in interface CharIntMapflipUniqueValues in interface MutableCharIntMappublic MutableCharIntMap select(CharIntPredicate predicate)
select in interface CharIntMapselect in interface MutableCharIntMappublic MutableCharIntMap reject(CharIntPredicate predicate)
reject in interface CharIntMapreject in interface MutableCharIntMappublic MutableIntIterator intIterator()
intIterator in interface IntIterableintIterator in interface MutableIntValuesMappublic void each(IntProcedure procedure)
each in interface IntIterablepublic int count(IntPredicate predicate)
count in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablepublic MutableIntBag select(IntPredicate predicate)
select in interface IntIterableselect in interface IntValuesMapselect in interface MutableIntValuesMappublic MutableIntBag reject(IntPredicate predicate)
reject in interface IntIterablereject in interface IntValuesMapreject in interface MutableIntValuesMappublic <V> MutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect in interface IntIterablecollect in interface IntValuesMapcollect in interface MutableIntValuesMappublic int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterablepublic long sum()
sum in interface IntIterablepublic int max()
max in interface IntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablepublic int min()
min in interface IntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterablepublic double average()
average in interface IntIterablepublic double median()
median in interface IntIterablepublic int addToValue(char key,
int toBeAdded)
addToValue in interface MutableCharIntMappublic int[] toSortedArray()
toSortedArray in interface IntIterablepublic MutableIntList toSortedList()
toSortedList in interface IntIterablepublic int[] toArray()
toArray in interface IntIterablepublic int[] toArray(int[] target)
toArray in interface IntIterablepublic boolean contains(int value)
contains in interface IntIterablepublic boolean containsAll(int... source)
containsAll in interface IntIterablepublic boolean containsAll(IntIterable source)
containsAll in interface IntIterablepublic MutableIntList toList()
toList in interface IntIterablepublic MutableIntSet toSet()
toSet in interface IntIterablepublic MutableIntBag toBag()
toBag in interface IntIterablepublic LazyIntIterable asLazy()
asLazy in interface IntIterablepublic MutableCharIntMap withKeyValue(char key, int value)
withKeyValue in interface MutableCharIntMappublic MutableCharIntMap withoutKey(char key)
withoutKey in interface MutableCharIntMappublic MutableCharIntMap withoutAllKeys(CharIterable keys)
withoutAllKeys in interface MutableCharIntMappublic MutableCharIntMap asUnmodifiable()
asUnmodifiable in interface MutableCharIntMappublic MutableCharIntMap asSynchronized()
asSynchronized in interface MutableCharIntMappublic ImmutableCharIntMap toImmutable()
toImmutable in interface CharIntMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableCharSet keySet()
keySet in interface CharIntMappublic MutableIntCollection values()
values in interface IntValuesMappublic boolean equals(Object otherMap)
equals in interface CharIntMapequals in class Objectpublic int hashCode()
hashCode in interface CharIntMaphashCode in class Objectpublic String toString()
toString in interface CharIntMaptoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterablepublic RichIterable<IntIterable> chunk(int size)
chunk in interface IntIterableCopyright © 2004–2022. All rights reserved.