public class SynchronizedByteShortMap extends Object implements MutableByteShortMap, Serializable
MutableByteShortMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableShortIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableByteShortMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedByteShortMap(MutableByteShortMap map) |
SynchronizedByteShortMap(MutableByteShortMap 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 SynchronizedByteShortMap(MutableByteShortMap map)
public SynchronizedByteShortMap(MutableByteShortMap map, Object newLock)
public void clear()
clear in interface MutableShortValuesMappublic void put(byte key,
short value)
put in interface MutableByteShortMappublic void putPair(ByteShortPair keyValuePair)
putPair in interface MutableByteShortMappublic void putAll(ByteShortMap map)
putAll in interface MutableByteShortMappublic void updateValues(ByteShortToShortFunction function)
updateValues in interface MutableByteShortMappublic void removeKey(byte key)
removeKey in interface MutableByteShortMappublic void remove(byte key)
remove in interface MutableByteShortMappublic short removeKeyIfAbsent(byte key,
short value)
removeKeyIfAbsent in interface MutableByteShortMappublic short getIfAbsentPut(byte key,
short value)
getIfAbsentPut in interface MutableByteShortMappublic short getAndPut(byte key,
short putValue,
short defaultValue)
getAndPut in interface MutableByteShortMappublic short getIfAbsentPut(byte key,
ShortFunction0 function)
getIfAbsentPut in interface MutableByteShortMappublic short getIfAbsentPutWithKey(byte key,
ByteToShortFunction function)
getIfAbsentPutWithKey in interface MutableByteShortMappublic <P> short getIfAbsentPutWith(byte key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteShortMappublic short updateValue(byte key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableByteShortMappublic short get(byte key)
get in interface ByteShortMappublic short getIfAbsent(byte key,
short ifAbsent)
getIfAbsent in interface ByteShortMappublic short getOrThrow(byte key)
getOrThrow in interface ByteShortMappublic boolean containsKey(byte key)
containsKey in interface ByteShortMappublic boolean containsValue(short value)
containsValue in interface ShortValuesMappublic void forEachValue(ShortProcedure procedure)
forEachValue in interface ShortValuesMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteShortMappublic void forEachKeyValue(ByteShortProcedure procedure)
forEachKeyValue in interface ByteShortMappublic LazyByteIterable keysView()
keysView in interface ByteShortMappublic RichIterable<ByteShortPair> keyValuesView()
keyValuesView in interface ByteShortMappublic MutableShortByteMap flipUniqueValues()
flipUniqueValues in interface ByteShortMapflipUniqueValues in interface MutableByteShortMappublic MutableByteShortMap select(ByteShortPredicate predicate)
select in interface ByteShortMapselect in interface MutableByteShortMappublic MutableByteShortMap reject(ByteShortPredicate predicate)
reject in interface ByteShortMapreject in interface MutableByteShortMappublic MutableShortIterator shortIterator()
shortIterator in interface MutableShortValuesMapshortIterator in interface ShortIterablepublic void each(ShortProcedure procedure)
each in interface ShortIterablepublic int count(ShortPredicate predicate)
count in interface ShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
anySatisfy in interface ShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
allSatisfy in interface ShortIterablepublic boolean noneSatisfy(ShortPredicate predicate)
noneSatisfy in interface ShortIterablepublic MutableShortBag select(ShortPredicate predicate)
select in interface MutableShortValuesMapselect in interface ShortValuesMapselect in interface ShortIterablepublic MutableShortBag reject(ShortPredicate predicate)
reject in interface MutableShortValuesMapreject in interface ShortValuesMapreject in interface ShortIterablepublic <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortValuesMapcollect in interface ShortValuesMapcollect in interface ShortIterablepublic short detectIfNone(ShortPredicate predicate, short ifNone)
detectIfNone in interface ShortIterablepublic long sum()
sum in interface ShortIterablepublic short max()
max in interface ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface ShortIterablepublic short min()
min in interface ShortIterablepublic short minIfEmpty(short defaultValue)
minIfEmpty in interface ShortIterablepublic double average()
average in interface ShortIterablepublic double median()
median in interface ShortIterablepublic short addToValue(byte key,
short toBeAdded)
addToValue in interface MutableByteShortMappublic short[] toSortedArray()
toSortedArray in interface ShortIterablepublic MutableShortList toSortedList()
toSortedList in interface ShortIterablepublic short[] toArray()
toArray in interface ShortIterablepublic short[] toArray(short[] target)
toArray in interface ShortIterablepublic boolean contains(short value)
contains in interface ShortIterablepublic boolean containsAll(short... source)
containsAll in interface ShortIterablepublic boolean containsAll(ShortIterable source)
containsAll in interface ShortIterablepublic MutableShortList toList()
toList in interface ShortIterablepublic MutableShortSet toSet()
toSet in interface ShortIterablepublic MutableShortBag toBag()
toBag in interface ShortIterablepublic LazyShortIterable asLazy()
asLazy in interface ShortIterablepublic MutableByteShortMap withKeyValue(byte key, short value)
withKeyValue in interface MutableByteShortMappublic MutableByteShortMap withoutKey(byte key)
withoutKey in interface MutableByteShortMappublic MutableByteShortMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteShortMappublic MutableByteShortMap asUnmodifiable()
asUnmodifiable in interface MutableByteShortMappublic MutableByteShortMap asSynchronized()
asSynchronized in interface MutableByteShortMappublic ImmutableByteShortMap toImmutable()
toImmutable in interface ByteShortMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableByteSet keySet()
keySet in interface ByteShortMappublic MutableShortCollection values()
values in interface ShortValuesMappublic boolean equals(Object otherMap)
equals in interface ByteShortMapequals in class Objectpublic int hashCode()
hashCode in interface ByteShortMaphashCode in class Objectpublic String toString()
toString in interface ByteShortMaptoString 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,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterablepublic RichIterable<ShortIterable> chunk(int size)
chunk in interface ShortIterableCopyright © 2004–2022. All rights reserved.