public interface MutableObjectIntMap<K> extends ObjectIntMap<K>
| Modifier and Type | Method and Description |
|---|---|
int |
addToValue(K key,
int toBeAdded) |
MutableObjectIntMap<K> |
asSynchronized() |
MutableObjectIntMap<K> |
asUnmodifiable() |
void |
clear() |
<V> MutableCollection<V> |
collect(IntToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableIntObjectMap<K> |
flipUniqueValues()
Return the IntObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(K key,
int value) |
int |
getIfAbsentPut(K key,
IntFunction0 function) |
<P> int |
getIfAbsentPutWith(K key,
IntFunction<? super P> function,
P parameter) |
int |
getIfAbsentPutWithKey(K key,
IntFunction<? super K> function) |
MutableIntIterator |
intIterator()
Returns a primitive iterator that can be used to iterate over the IntIterable in an
imperative style.
|
void |
put(K key,
int value) |
void |
putAll(ObjectIntMap<? extends K> map) |
MutableIntCollection |
reject(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableObjectIntMap<K> |
reject(ObjectIntPredicate<? super K> predicate) |
void |
remove(Object key) |
void |
removeKey(K key) |
int |
removeKeyIfAbsent(K key,
int value) |
MutableIntCollection |
select(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
MutableObjectIntMap<K> |
select(ObjectIntPredicate<? super K> predicate) |
default MutableObjectIntMap<K> |
tap(IntProcedure procedure) |
int |
updateValue(K key,
int initialValueIfAbsent,
IntToIntFunction function) |
MutableObjectIntMap<K> |
withKeyValue(K key,
int value) |
MutableObjectIntMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
MutableObjectIntMap<K> |
withoutKey(K key) |
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, valuesallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMutableIntIterator intIterator()
IntIterableintIterator in interface IntIterablevoid clear()
void put(K key, int value)
void putAll(ObjectIntMap<? extends K> map)
void removeKey(K key)
void remove(Object key)
int removeKeyIfAbsent(K key, int value)
int getIfAbsentPut(K key, int value)
int getIfAbsentPut(K key, IntFunction0 function)
int getIfAbsentPutWithKey(K key, IntFunction<? super K> function)
<P> int getIfAbsentPutWith(K key, IntFunction<? super P> function, P parameter)
int updateValue(K key, int initialValueIfAbsent, IntToIntFunction function)
MutableIntObjectMap<K> flipUniqueValues()
ObjectIntMapflipUniqueValues in interface ObjectIntMap<K>MutableObjectIntMap<K> select(ObjectIntPredicate<? super K> predicate)
select in interface ObjectIntMap<K>MutableObjectIntMap<K> reject(ObjectIntPredicate<? super K> predicate)
reject in interface ObjectIntMap<K>MutableIntCollection select(IntPredicate predicate)
IntIterableselect in interface IntIterableMutableIntCollection reject(IntPredicate predicate)
IntIterablereject in interface IntIterabledefault MutableObjectIntMap<K> tap(IntProcedure procedure)
tap in interface IntIterabletap in interface ObjectIntMap<K><V> MutableCollection<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterableMutableObjectIntMap<K> withKeyValue(K key, int value)
MutableObjectIntMap<K> withoutKey(K key)
MutableObjectIntMap<K> withoutAllKeys(Iterable<? extends K> keys)
MutableObjectIntMap<K> asUnmodifiable()
MutableObjectIntMap<K> asSynchronized()
int addToValue(K key, int toBeAdded)
Copyright © 2004–2017. All rights reserved.