BooleanIterable
, BooleanValuesMap
, MutableBooleanValuesMap
, PrimitiveIterable
, ShortBooleanMap
ShortBooleanHashMap
, SynchronizedShortBooleanMap
, UnmodifiableShortBooleanMap
public interface MutableShortBooleanMap extends ShortBooleanMap, MutableBooleanValuesMap
Modifier and Type | Method | Description |
---|---|---|
MutableShortBooleanMap |
asSynchronized() |
|
MutableShortBooleanMap |
asUnmodifiable() |
|
boolean |
getIfAbsentPut(short key,
boolean value) |
|
boolean |
getIfAbsentPut(short key,
BooleanFunction0 function) |
|
<P> boolean |
getIfAbsentPutWith(short key,
BooleanFunction<? super P> function,
P parameter) |
|
boolean |
getIfAbsentPutWithKey(short key,
ShortToBooleanFunction function) |
|
void |
put(short key,
boolean value) |
|
void |
putAll(ShortBooleanMap map) |
|
default void |
putPair(ShortBooleanPair keyValuePair) |
This method allows MutableShortBooleanMap the ability to add an element in the form of ShortBooleanPair.
|
MutableShortBooleanMap |
reject(ShortBooleanPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
boolean |
removeKeyIfAbsent(short key,
boolean value) |
|
MutableShortBooleanMap |
select(ShortBooleanPredicate predicate) |
|
boolean |
updateValue(short key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
|
void |
updateValues(ShortBooleanToBooleanFunction function) |
Updates the values in-place.
|
default MutableShortBooleanMap |
withAllKeyValues(Iterable<ShortBooleanPair> keyValuePairs) |
|
MutableShortBooleanMap |
withKeyValue(short key,
boolean value) |
|
MutableShortBooleanMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortBooleanMap |
withoutKey(short key) |
allSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toBag, toList, toSet
containsValue, forEachValue, tap, values
booleanIterator, clear, collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
void put(short key, boolean value)
default void putPair(ShortBooleanPair keyValuePair)
put(short, boolean)
void putAll(ShortBooleanMap map)
void updateValues(ShortBooleanToBooleanFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(short key)
void remove(short key)
boolean removeKeyIfAbsent(short key, boolean value)
boolean getIfAbsentPut(short key, boolean value)
boolean getIfAbsentPut(short key, BooleanFunction0 function)
boolean getIfAbsentPutWithKey(short key, ShortToBooleanFunction function)
<P> boolean getIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter)
boolean updateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
MutableShortBooleanMap select(ShortBooleanPredicate predicate)
select
in interface ShortBooleanMap
MutableShortBooleanMap reject(ShortBooleanPredicate predicate)
reject
in interface ShortBooleanMap
MutableShortBooleanMap withKeyValue(short key, boolean value)
MutableShortBooleanMap withoutKey(short key)
MutableShortBooleanMap withoutAllKeys(ShortIterable keys)
default MutableShortBooleanMap withAllKeyValues(Iterable<ShortBooleanPair> keyValuePairs)
MutableShortBooleanMap asUnmodifiable()
MutableShortBooleanMap asSynchronized()
Copyright © 2004–2019. All rights reserved.