public final class UnmodifiableByteShortMap extends Object implements MutableByteShortMap, Serializable
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(byte key,
short toBeAdded) |
boolean |
allSatisfy(ShortPredicate predicate) |
boolean |
anySatisfy(ShortPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyShortIterable |
asLazy() |
MutableByteShortMap |
asSynchronized() |
MutableByteShortMap |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(ShortToObjectFunction<? extends V> function) |
boolean |
contains(short value) |
boolean |
containsAll(short... source) |
boolean |
containsAll(ShortIterable source) |
boolean |
containsKey(byte key) |
boolean |
containsValue(short value) |
int |
count(ShortPredicate predicate) |
short |
detectIfNone(ShortPredicate predicate,
short ifNone) |
boolean |
equals(Object otherMap)
Follows the same general contract as
Map.equals(Object). |
void |
forEach(ShortProcedure procedure) |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteShortProcedure procedure) |
void |
forEachValue(ShortProcedure procedure) |
short |
get(byte key) |
short |
getIfAbsent(byte key,
short ifAbsent) |
short |
getIfAbsentPut(byte key,
short value) |
short |
getIfAbsentPut(byte key,
ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(byte key,
ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(byte key,
ByteToShortFunction function) |
short |
getOrThrow(byte key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
<T> T |
injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<ByteShortPair> |
keyValuesView() |
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
short |
max() |
short |
maxIfEmpty(short defaultValue) |
double |
median() |
short |
min() |
short |
minIfEmpty(short defaultValue) |
boolean |
noneSatisfy(ShortPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(byte key,
short value) |
void |
putAll(ByteShortMap map) |
MutableByteShortMap |
reject(ByteShortPredicate predicate) |
MutableShortCollection |
reject(ShortPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
short |
removeKeyIfAbsent(byte key,
short value) |
MutableByteShortMap |
select(ByteShortPredicate predicate) |
MutableShortCollection |
select(ShortPredicate predicate) |
ShortIterator |
shortIterator() |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
short[] |
toArray() |
MutableShortBag |
toBag() |
ImmutableByteShortMap |
toImmutable() |
MutableShortList |
toList() |
MutableShortSet |
toSet() |
short[] |
toSortedArray() |
MutableShortList |
toSortedList() |
String |
toString()
Returns a string representation of this ByteShortMap.
|
short |
updateValue(byte key,
short initialValueIfAbsent,
ShortToShortFunction function) |
MutableShortCollection |
values() |
MutableByteShortMap |
withKeyValue(byte key,
short value) |
MutableByteShortMap |
withoutAllKeys(ByteIterable keys) |
MutableByteShortMap |
withoutKey(byte key) |
public void clear()
clear in interface MutableByteShortMappublic void put(byte key,
short value)
put in interface MutableByteShortMappublic void putAll(ByteShortMap map)
putAll 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 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 ByteShortMappublic void forEachValue(ShortProcedure procedure)
forEachValue in interface ByteShortMappublic 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 MutableByteShortMap select(ByteShortPredicate predicate)
select in interface ByteShortMapselect in interface MutableByteShortMappublic MutableByteShortMap reject(ByteShortPredicate predicate)
reject in interface ByteShortMapreject in interface MutableByteShortMappublic ShortIterator shortIterator()
shortIterator in interface ShortIterablepublic void forEach(ShortProcedure procedure)
forEach 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 MutableShortCollection select(ShortPredicate predicate)
select in interface MutableByteShortMapselect in interface ShortIterablepublic MutableShortCollection reject(ShortPredicate predicate)
reject in interface MutableByteShortMapreject in interface ShortIterablepublic short detectIfNone(ShortPredicate predicate, short ifNone)
detectIfNone in interface ShortIterablepublic <V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableByteShortMapcollect 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 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()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableByteSet keySet()
keySet in interface ByteShortMappublic MutableShortCollection values()
values in interface ByteShortMappublic boolean equals(Object otherMap)
ByteShortMapMap.equals(Object).equals in interface ByteShortMapequals in class Objectpublic int hashCode()
ByteShortMapMap.hashCode().hashCode in interface ByteShortMaphashCode in class Objectpublic String toString()
ByteShortMaptoString in interface ByteShortMaptoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterableCopyright © 2004–2017. All rights reserved.