BooleanIterable, BooleanValuesMap, MutableBooleanValuesMap, PrimitiveIterable, ShortBooleanMapShortBooleanHashMap, SynchronizedShortBooleanMap, UnmodifiableShortBooleanMappublic 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(java.lang.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, toSetcontainsValue, forEachValue, tap, valuesbooleanIterator, clear, collect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizecontainsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringvoid 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 ShortBooleanMapMutableShortBooleanMap reject(ShortBooleanPredicate predicate)
reject in interface ShortBooleanMapMutableShortBooleanMap withKeyValue(short key, boolean value)
MutableShortBooleanMap withoutKey(short key)
MutableShortBooleanMap withoutAllKeys(ShortIterable keys)
default MutableShortBooleanMap withAllKeyValues(java.lang.Iterable<ShortBooleanPair> keyValuePairs)
MutableShortBooleanMap asUnmodifiable()
MutableShortBooleanMap asSynchronized()
Copyright © 2004–2020. All rights reserved.