CharIterable
, ObjectCharMap<K>
, PrimitiveIterable
ObjectCharHashMap
, ObjectCharHashMapWithHashingStrategy
, SynchronizedObjectCharMap
, UnmodifiableObjectCharMap
public interface MutableObjectCharMap<K> extends ObjectCharMap<K>
Modifier and Type | Method | Description |
---|---|---|
char |
addToValue(K key,
char toBeAdded) |
|
MutableObjectCharMap<K> |
asSynchronized() |
|
MutableObjectCharMap<K> |
asUnmodifiable() |
|
MutableCharIterator |
charIterator() |
Returns a primitive iterator that can be used to iterate over the CharIterable in an
imperative style.
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableCharObjectMap<K> |
flipUniqueValues() |
Return the CharObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
char |
getIfAbsentPut(K key,
char value) |
|
char |
getIfAbsentPut(K key,
CharFunction0 function) |
|
<P> char |
getIfAbsentPutWith(K key,
CharFunction<? super P> function,
P parameter) |
|
char |
getIfAbsentPutWithKey(K key,
CharFunction<? super K> function) |
|
void |
put(K key,
char value) |
|
void |
putAll(ObjectCharMap<? extends K> map) |
|
default void |
putPair(ObjectCharPair<K> keyValuePair) |
This method allows MutableObjectCharMap the ability to add an element in the form of
ObjectCharPair<K> . |
MutableCharCollection |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
MutableObjectCharMap<K> |
reject(ObjectCharPredicate<? super K> predicate) |
|
void |
remove(java.lang.Object key) |
|
void |
removeKey(K key) |
|
char |
removeKeyIfAbsent(K key,
char value) |
|
MutableCharCollection |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
MutableObjectCharMap<K> |
select(ObjectCharPredicate<? super K> predicate) |
|
default MutableObjectCharMap<K> |
tap(CharProcedure procedure) |
|
char |
updateValue(K key,
char initialValueIfAbsent,
CharToCharFunction function) |
|
void |
updateValues(ObjectCharToCharFunction<? super K> function) |
Updates the values in-place.
|
default MutableObjectCharMap<K> |
withAllKeyValues(java.lang.Iterable<ObjectCharPair<K>> keyValuePairs) |
|
MutableObjectCharMap<K> |
withKeyValue(K key,
char value) |
|
MutableObjectCharMap<K> |
withoutAllKeys(java.lang.Iterable<? extends K> keys) |
|
MutableObjectCharMap<K> |
withoutKey(K key) |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
MutableCharIterator charIterator()
CharIterable
charIterator
in interface CharIterable
void clear()
void put(K key, char value)
default void putPair(ObjectCharPair<K> keyValuePair)
ObjectCharPair<K>
.put(Object, char)
void putAll(ObjectCharMap<? extends K> map)
void updateValues(ObjectCharToCharFunction<? 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(java.lang.Object key)
char removeKeyIfAbsent(K key, char value)
char getIfAbsentPut(K key, char value)
char getIfAbsentPut(K key, CharFunction0 function)
char getIfAbsentPutWithKey(K key, CharFunction<? super K> function)
<P> char getIfAbsentPutWith(K key, CharFunction<? super P> function, P parameter)
char updateValue(K key, char initialValueIfAbsent, CharToCharFunction function)
MutableCharObjectMap<K> flipUniqueValues()
ObjectCharMap
flipUniqueValues
in interface ObjectCharMap<K>
MutableObjectCharMap<K> select(ObjectCharPredicate<? super K> predicate)
select
in interface ObjectCharMap<K>
MutableObjectCharMap<K> reject(ObjectCharPredicate<? super K> predicate)
reject
in interface ObjectCharMap<K>
MutableCharCollection select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
MutableCharCollection reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
default MutableObjectCharMap<K> tap(CharProcedure procedure)
tap
in interface CharIterable
tap
in interface ObjectCharMap<K>
<V> MutableCollection<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
MutableObjectCharMap<K> withKeyValue(K key, char value)
MutableObjectCharMap<K> withoutKey(K key)
MutableObjectCharMap<K> withoutAllKeys(java.lang.Iterable<? extends K> keys)
default MutableObjectCharMap<K> withAllKeyValues(java.lang.Iterable<ObjectCharPair<K>> keyValuePairs)
MutableObjectCharMap<K> asUnmodifiable()
MutableObjectCharMap<K> asSynchronized()
char addToValue(K key, char toBeAdded)
Copyright © 2004–2020. All rights reserved.