public class SynchronizedShortCharMap extends Object implements MutableShortCharMap, Serializable
MutableShortCharMap. 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.
MutableShortCharMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedShortCharMap(MutableShortCharMap map) |
SynchronizedShortCharMap(MutableShortCharMap 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 SynchronizedShortCharMap(MutableShortCharMap map)
public SynchronizedShortCharMap(MutableShortCharMap map, Object newLock)
public void clear()
clear in interface MutableCharValuesMappublic void put(short key,
char value)
put in interface MutableShortCharMappublic void putPair(ShortCharPair keyValuePair)
putPair in interface MutableShortCharMappublic void putAll(ShortCharMap map)
putAll in interface MutableShortCharMappublic void updateValues(ShortCharToCharFunction function)
updateValues in interface MutableShortCharMappublic void removeKey(short key)
removeKey in interface MutableShortCharMappublic void remove(short key)
remove in interface MutableShortCharMappublic char removeKeyIfAbsent(short key,
char value)
removeKeyIfAbsent in interface MutableShortCharMappublic char getIfAbsentPut(short key,
char value)
getIfAbsentPut in interface MutableShortCharMappublic char getAndPut(short key,
char putValue,
char defaultValue)
getAndPut in interface MutableShortCharMappublic char getIfAbsentPut(short key,
CharFunction0 function)
getIfAbsentPut in interface MutableShortCharMappublic char getIfAbsentPutWithKey(short key,
ShortToCharFunction function)
getIfAbsentPutWithKey in interface MutableShortCharMappublic <P> char getIfAbsentPutWith(short key,
CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortCharMappublic char updateValue(short key,
char initialValueIfAbsent,
CharToCharFunction function)
updateValue in interface MutableShortCharMappublic char get(short key)
get in interface ShortCharMappublic char getIfAbsent(short key,
char ifAbsent)
getIfAbsent in interface ShortCharMappublic char getOrThrow(short key)
getOrThrow in interface ShortCharMappublic boolean containsKey(short key)
containsKey in interface ShortCharMappublic boolean containsValue(char value)
containsValue in interface CharValuesMappublic void forEachValue(CharProcedure procedure)
forEachValue in interface CharValuesMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortCharMappublic void forEachKeyValue(ShortCharProcedure procedure)
forEachKeyValue in interface ShortCharMappublic LazyShortIterable keysView()
keysView in interface ShortCharMappublic RichIterable<ShortCharPair> keyValuesView()
keyValuesView in interface ShortCharMappublic MutableCharShortMap flipUniqueValues()
flipUniqueValues in interface MutableShortCharMapflipUniqueValues in interface ShortCharMappublic MutableShortCharMap select(ShortCharPredicate predicate)
select in interface MutableShortCharMapselect in interface ShortCharMappublic MutableShortCharMap reject(ShortCharPredicate predicate)
reject in interface MutableShortCharMapreject in interface ShortCharMappublic MutableCharIterator charIterator()
charIterator in interface CharIterablecharIterator in interface MutableCharValuesMappublic void each(CharProcedure procedure)
each in interface CharIterablepublic int count(CharPredicate predicate)
count in interface CharIterablepublic boolean anySatisfy(CharPredicate predicate)
anySatisfy in interface CharIterablepublic boolean allSatisfy(CharPredicate predicate)
allSatisfy in interface CharIterablepublic boolean noneSatisfy(CharPredicate predicate)
noneSatisfy in interface CharIterablepublic MutableCharBag select(CharPredicate predicate)
select in interface CharIterableselect in interface CharValuesMapselect in interface MutableCharValuesMappublic MutableCharBag reject(CharPredicate predicate)
reject in interface CharIterablereject in interface CharValuesMapreject in interface MutableCharValuesMappublic <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterablecollect in interface CharValuesMapcollect in interface MutableCharValuesMappublic char detectIfNone(CharPredicate predicate, char ifNone)
detectIfNone in interface CharIterablepublic long sum()
sum in interface CharIterablepublic char max()
max in interface CharIterablepublic char maxIfEmpty(char defaultValue)
maxIfEmpty in interface CharIterablepublic char min()
min in interface CharIterablepublic char minIfEmpty(char defaultValue)
minIfEmpty in interface CharIterablepublic double average()
average in interface CharIterablepublic double median()
median in interface CharIterablepublic char addToValue(short key,
char toBeAdded)
addToValue in interface MutableShortCharMappublic char[] toSortedArray()
toSortedArray in interface CharIterablepublic MutableCharList toSortedList()
toSortedList in interface CharIterablepublic char[] toArray()
toArray in interface CharIterablepublic char[] toArray(char[] target)
toArray in interface CharIterablepublic boolean contains(char value)
contains in interface CharIterablepublic boolean containsAll(char... source)
containsAll in interface CharIterablepublic boolean containsAll(CharIterable source)
containsAll in interface CharIterablepublic MutableCharList toList()
toList in interface CharIterablepublic MutableCharSet toSet()
toSet in interface CharIterablepublic MutableCharBag toBag()
toBag in interface CharIterablepublic LazyCharIterable asLazy()
asLazy in interface CharIterablepublic MutableShortCharMap withKeyValue(short key, char value)
withKeyValue in interface MutableShortCharMappublic MutableShortCharMap withoutKey(short key)
withoutKey in interface MutableShortCharMappublic MutableShortCharMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortCharMappublic MutableShortCharMap asUnmodifiable()
asUnmodifiable in interface MutableShortCharMappublic MutableShortCharMap asSynchronized()
asSynchronized in interface MutableShortCharMappublic ImmutableShortCharMap toImmutable()
toImmutable in interface ShortCharMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableShortSet keySet()
keySet in interface ShortCharMappublic MutableCharCollection values()
values in interface CharValuesMappublic boolean equals(Object otherMap)
equals in interface ShortCharMapequals in class Objectpublic int hashCode()
hashCode in interface ShortCharMaphashCode in class Objectpublic String toString()
toString in interface ShortCharMaptoString 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,
ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface CharIterablepublic RichIterable<CharIterable> chunk(int size)
chunk in interface CharIterableCopyright © 2004–2022. All rights reserved.