public class SynchronizedLongShortMap extends Object implements MutableLongShortMap, Serializable
MutableLongShortMap. 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.
MutableLongShortMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedLongShortMap(MutableLongShortMap map) |
SynchronizedLongShortMap(MutableLongShortMap 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 SynchronizedLongShortMap(MutableLongShortMap map)
public SynchronizedLongShortMap(MutableLongShortMap map, Object newLock)
public void clear()
clear in interface MutableShortValuesMappublic void put(long key,
short value)
put in interface MutableLongShortMappublic void putPair(LongShortPair keyValuePair)
putPair in interface MutableLongShortMappublic void putAll(LongShortMap map)
putAll in interface MutableLongShortMappublic void updateValues(LongShortToShortFunction function)
updateValues in interface MutableLongShortMappublic void removeKey(long key)
removeKey in interface MutableLongShortMappublic void remove(long key)
remove in interface MutableLongShortMappublic short removeKeyIfAbsent(long key,
short value)
removeKeyIfAbsent in interface MutableLongShortMappublic short getIfAbsentPut(long key,
short value)
getIfAbsentPut in interface MutableLongShortMappublic short getAndPut(long key,
short putValue,
short defaultValue)
getAndPut in interface MutableLongShortMappublic short getIfAbsentPut(long key,
ShortFunction0 function)
getIfAbsentPut in interface MutableLongShortMappublic short getIfAbsentPutWithKey(long key,
LongToShortFunction function)
getIfAbsentPutWithKey in interface MutableLongShortMappublic <P> short getIfAbsentPutWith(long key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongShortMappublic short updateValue(long key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableLongShortMappublic short get(long key)
get in interface LongShortMappublic short getIfAbsent(long key,
short ifAbsent)
getIfAbsent in interface LongShortMappublic short getOrThrow(long key)
getOrThrow in interface LongShortMappublic boolean containsKey(long key)
containsKey in interface LongShortMappublic boolean containsValue(short value)
containsValue in interface ShortValuesMappublic void forEachValue(ShortProcedure procedure)
forEachValue in interface ShortValuesMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongShortMappublic void forEachKeyValue(LongShortProcedure procedure)
forEachKeyValue in interface LongShortMappublic LazyLongIterable keysView()
keysView in interface LongShortMappublic RichIterable<LongShortPair> keyValuesView()
keyValuesView in interface LongShortMappublic MutableShortLongMap flipUniqueValues()
flipUniqueValues in interface LongShortMapflipUniqueValues in interface MutableLongShortMappublic MutableLongShortMap select(LongShortPredicate predicate)
select in interface LongShortMapselect in interface MutableLongShortMappublic MutableLongShortMap reject(LongShortPredicate predicate)
reject in interface LongShortMapreject in interface MutableLongShortMappublic 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(long key,
short toBeAdded)
addToValue in interface MutableLongShortMappublic 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 MutableLongShortMap withKeyValue(long key, short value)
withKeyValue in interface MutableLongShortMappublic MutableLongShortMap withoutKey(long key)
withoutKey in interface MutableLongShortMappublic MutableLongShortMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongShortMappublic MutableLongShortMap asUnmodifiable()
asUnmodifiable in interface MutableLongShortMappublic MutableLongShortMap asSynchronized()
asSynchronized in interface MutableLongShortMappublic ImmutableLongShortMap toImmutable()
toImmutable in interface LongShortMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableLongSet keySet()
keySet in interface LongShortMappublic MutableShortCollection values()
values in interface ShortValuesMappublic boolean equals(Object otherMap)
equals in interface LongShortMapequals in class Objectpublic int hashCode()
hashCode in interface LongShortMaphashCode in class Objectpublic String toString()
toString in interface LongShortMaptoString 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.