BooleanIterable
, ObjectBooleanMap<K>
, PrimitiveIterable
ObjectBooleanHashMap
, ObjectBooleanHashMapWithHashingStrategy
, SynchronizedObjectBooleanMap
, UnmodifiableObjectBooleanMap
public interface MutableObjectBooleanMap<K> extends ObjectBooleanMap<K>
Modifier and Type | Method | Description |
---|---|---|
MutableObjectBooleanMap<K> |
asSynchronized() |
|
MutableObjectBooleanMap<K> |
asUnmodifiable() |
|
MutableBooleanIterator |
booleanIterator() |
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an
imperative style.
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(BooleanToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
getIfAbsentPut(K key,
boolean value) |
|
boolean |
getIfAbsentPut(K key,
BooleanFunction0 function) |
|
<P> boolean |
getIfAbsentPutWith(K key,
BooleanFunction<? super P> function,
P parameter) |
|
boolean |
getIfAbsentPutWithKey(K key,
BooleanFunction<? super K> function) |
|
void |
put(K key,
boolean value) |
|
void |
putAll(ObjectBooleanMap<? extends K> map) |
|
default void |
putPair(ObjectBooleanPair<K> keyValuePair) |
This method allows MutableObjectBooleanMap the ability to add an element in the form of
ObjectBooleanPair<K> . |
MutableBooleanCollection |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableObjectBooleanMap<K> |
reject(ObjectBooleanPredicate<? super K> predicate) |
|
void |
remove(Object key) |
|
void |
removeKey(K key) |
|
boolean |
removeKeyIfAbsent(K key,
boolean value) |
|
MutableBooleanCollection |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
MutableObjectBooleanMap<K> |
select(ObjectBooleanPredicate<? super K> predicate) |
|
default MutableObjectBooleanMap<K> |
tap(BooleanProcedure procedure) |
|
boolean |
updateValue(K key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
|
void |
updateValues(ObjectBooleanToBooleanFunction<? super K> function) |
Updates the values in-place.
|
default MutableObjectBooleanMap<K> |
withAllKeyValues(Iterable<ObjectBooleanPair<K>> keyValuePairs) |
|
MutableObjectBooleanMap<K> |
withKeyValue(K key,
boolean value) |
|
MutableObjectBooleanMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
|
MutableObjectBooleanMap<K> |
withoutKey(K 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
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
MutableBooleanIterator booleanIterator()
BooleanIterable
booleanIterator
in interface BooleanIterable
void clear()
void put(K key, boolean value)
default void putPair(ObjectBooleanPair<K> keyValuePair)
ObjectBooleanPair<K>
.put(Object, boolean)
void putAll(ObjectBooleanMap<? extends K> map)
void updateValues(ObjectBooleanToBooleanFunction<? super K> function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(K key)
void remove(Object key)
boolean removeKeyIfAbsent(K key, boolean value)
boolean getIfAbsentPut(K key, boolean value)
boolean getIfAbsentPut(K key, BooleanFunction0 function)
boolean getIfAbsentPutWithKey(K key, BooleanFunction<? super K> function)
<P> boolean getIfAbsentPutWith(K key, BooleanFunction<? super P> function, P parameter)
boolean updateValue(K key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
MutableObjectBooleanMap<K> select(ObjectBooleanPredicate<? super K> predicate)
select
in interface ObjectBooleanMap<K>
MutableObjectBooleanMap<K> reject(ObjectBooleanPredicate<? super K> predicate)
reject
in interface ObjectBooleanMap<K>
MutableBooleanCollection select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
MutableBooleanCollection reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
default MutableObjectBooleanMap<K> tap(BooleanProcedure procedure)
tap
in interface BooleanIterable
tap
in interface ObjectBooleanMap<K>
<V> MutableCollection<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
MutableObjectBooleanMap<K> withKeyValue(K key, boolean value)
MutableObjectBooleanMap<K> withoutKey(K key)
MutableObjectBooleanMap<K> withoutAllKeys(Iterable<? extends K> keys)
default MutableObjectBooleanMap<K> withAllKeyValues(Iterable<ObjectBooleanPair<K>> keyValuePairs)
MutableObjectBooleanMap<K> asUnmodifiable()
MutableObjectBooleanMap<K> asSynchronized()
Copyright © 2004–2019. All rights reserved.