public class UnmodifiableIntShortMap extends Object implements MutableIntShortMap, Serializable
| Constructor and Description |
|---|
UnmodifiableIntShortMap(MutableIntShortMap map) |
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 UnmodifiableIntShortMap(MutableIntShortMap map)
public void clear()
clear in interface MutableShortValuesMappublic void put(int key,
short value)
put in interface MutableIntShortMappublic void putPair(IntShortPair keyValuePair)
putPair in interface MutableIntShortMappublic void putAll(IntShortMap map)
putAll in interface MutableIntShortMappublic void updateValues(IntShortToShortFunction function)
updateValues in interface MutableIntShortMappublic void removeKey(int key)
removeKey in interface MutableIntShortMappublic void remove(int key)
remove in interface MutableIntShortMappublic short removeKeyIfAbsent(int key,
short value)
removeKeyIfAbsent in interface MutableIntShortMappublic short getIfAbsentPut(int key,
short value)
getIfAbsentPut in interface MutableIntShortMappublic short getAndPut(int key,
short putValue,
short defaultValue)
getAndPut in interface MutableIntShortMappublic short getIfAbsentPut(int key,
ShortFunction0 function)
getIfAbsentPut in interface MutableIntShortMappublic short getIfAbsentPutWithKey(int key,
IntToShortFunction function)
getIfAbsentPutWithKey in interface MutableIntShortMappublic <P> short getIfAbsentPutWith(int key,
ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntShortMappublic short updateValue(int key,
short initialValueIfAbsent,
ShortToShortFunction function)
updateValue in interface MutableIntShortMappublic short get(int key)
get in interface IntShortMappublic short getIfAbsent(int key,
short ifAbsent)
getIfAbsent in interface IntShortMappublic short getOrThrow(int key)
getOrThrow in interface IntShortMappublic boolean containsKey(int key)
containsKey in interface IntShortMappublic boolean containsValue(short value)
containsValue in interface ShortValuesMappublic void forEachValue(ShortProcedure procedure)
forEachValue in interface ShortValuesMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntShortMappublic void forEachKeyValue(IntShortProcedure procedure)
forEachKeyValue in interface IntShortMappublic LazyIntIterable keysView()
keysView in interface IntShortMappublic RichIterable<IntShortPair> keyValuesView()
keyValuesView in interface IntShortMappublic MutableShortIntMap flipUniqueValues()
flipUniqueValues in interface IntShortMapflipUniqueValues in interface MutableIntShortMappublic MutableIntShortMap select(IntShortPredicate predicate)
select in interface IntShortMapselect in interface MutableIntShortMappublic MutableIntShortMap reject(IntShortPredicate predicate)
reject in interface IntShortMapreject in interface MutableIntShortMappublic 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(int key,
short toBeAdded)
addToValue in interface MutableIntShortMappublic 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 MutableIntShortMap withKeyValue(int key, short value)
withKeyValue in interface MutableIntShortMappublic MutableIntShortMap withoutKey(int key)
withoutKey in interface MutableIntShortMappublic MutableIntShortMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntShortMappublic MutableIntShortMap asUnmodifiable()
asUnmodifiable in interface MutableIntShortMappublic MutableIntShortMap asSynchronized()
asSynchronized in interface MutableIntShortMappublic ImmutableIntShortMap toImmutable()
toImmutable in interface IntShortMappublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic MutableIntSet keySet()
keySet in interface IntShortMappublic MutableShortCollection values()
values in interface ShortValuesMappublic boolean equals(Object otherMap)
equals in interface IntShortMapequals in class Objectpublic int hashCode()
hashCode in interface IntShortMaphashCode in class Objectpublic String toString()
toString in interface IntShortMaptoString 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.