public abstract class AbstractMutableMap<K,V> extends AbstractMutableMapIterable<K,V> implements MutableMap<K,V>
| Constructor and Description |
|---|
AbstractMutableMap() |
| Modifier and Type | Method and Description |
|---|---|
MutableMap<K,V> |
asSynchronized() |
MutableMap<K,V> |
asUnmodifiable() |
abstract MutableMap<K,V> |
clone() |
<R> MutableBag<R> |
collect(Function<? super V,? extends R> function) |
MutableBooleanBag |
collectBoolean(BooleanFunction<? super V> booleanFunction) |
MutableByteBag |
collectByte(ByteFunction<? super V> byteFunction) |
MutableCharBag |
collectChar(CharFunction<? super V> charFunction) |
MutableDoubleBag |
collectDouble(DoubleFunction<? super V> doubleFunction) |
MutableFloatBag |
collectFloat(FloatFunction<? super V> floatFunction) |
<R> MutableBag<R> |
collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
MutableIntBag |
collectInt(IntFunction<? super V> intFunction) |
MutableLongBag |
collectLong(LongFunction<? super V> longFunction) |
MutableShortBag |
collectShort(ShortFunction<? super V> shortFunction) |
<R> MutableMap<K,R> |
collectValues(Function2<? super K,? super V,? extends R> function) |
<P,VV> MutableBag<VV> |
collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<R> MutableBag<R> |
flatCollect(Function<? super V,? extends Iterable<R>> function) |
MutableSetMultimap<V,K> |
flip() |
<VV> MutableBagMultimap<VV,V> |
groupBy(Function<? super V,? extends VV> function) |
<VV> MutableBagMultimap<VV,V> |
groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> MutableMap<VV,V> |
groupByUniqueKey(Function<? super V,? extends VV> function) |
abstract <K,V> MutableMap<K,V> |
newEmpty(int capacity)
Creates a new instance of the same type, using the given capacity and the default growth parameters.
|
PartitionMutableBag<V> |
partition(Predicate<? super V> predicate) |
<P> PartitionMutableBag<V> |
partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableBag<V> |
reject(Predicate<? super V> predicate) |
MutableMap<K,V> |
reject(Predicate2<? super K,? super V> predicate) |
<P> MutableBag<V> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableBag<V> |
select(Predicate<? super V> predicate) |
MutableMap<K,V> |
select(Predicate2<? super K,? super V> predicate) |
<S> MutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableBag<V> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableMap<K,V> |
tap(Procedure<? super V> procedure) |
ImmutableMap<K,V> |
toImmutable() |
MutableMap<K,V> |
withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues) |
MutableMap<K,V> |
withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
MutableMap<K,V> |
withKeyValue(K key,
V value) |
MutableMap<K,V> |
withoutAllKeys(Iterable<? extends K> keys) |
MutableMap<K,V> |
withoutKey(K key) |
<S> MutableBag<Pair<V,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
MutableSet<Pair<V,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
aggregateBy, collect, countBy, countByEach, countByWith, detect, detectOptional, flipUniqueValues, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, iterator, keysView, keyValuesView, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWith, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, forEachKey, forEachValue, forEachWith, forEachWithIndex, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, getOnly, getOrDefault, ifPresentApply, noneSatisfy, noneSatisfyWith, toArray, toArrayappendString, appendString, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregateBy, aggregateBy, aggregateInPlaceBy, collect, collectKeysAndValues, flatCollectWith, flipUniqueValues, newEmpty, withMap, withMapIterableadd, countBy, countByEach, countByWith, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, getOrDefault, putAllMapIterable, putPair, removeAllKeys, removeIf, removeKey, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWithclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuescontainsKey, containsValue, detect, detectOptional, equals, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getIfAbsentValue, getIfAbsentWith, hashCode, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, toString, valuesViewaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexforEach, forEachWith, forEachWithIndexpublic abstract MutableMap<K,V> clone()
public abstract <K,V> MutableMap<K,V> newEmpty(int capacity)
public MutableMap<K,V> asUnmodifiable()
asUnmodifiable in interface MutableMap<K,V>asUnmodifiable in interface MutableMapIterable<K,V>public ImmutableMap<K,V> toImmutable()
toImmutable in interface MapIterable<K,V>toImmutable in interface MutableMapIterable<K,V>toImmutable in interface UnsortedMapIterable<K,V>public MutableMap<K,V> asSynchronized()
asSynchronized in interface MutableMap<K,V>asSynchronized in interface MutableMapIterable<K,V>public MutableSetMultimap<V,K> flip()
flip in interface MapIterable<K,V>flip in interface MutableMap<K,V>flip in interface MutableMapIterable<K,V>flip in interface UnsortedMapIterable<K,V>public <R> MutableMap<K,R> collectValues(Function2<? super K,? super V,? extends R> function)
collectValues in interface MapIterable<K,V>collectValues in interface MutableMap<K,V>collectValues in interface MutableMapIterable<K,V>collectValues in interface UnsortedMapIterable<K,V>public MutableMap<K,V> select(Predicate2<? super K,? super V> predicate)
select in interface MapIterable<K,V>select in interface MutableMap<K,V>select in interface MutableMapIterable<K,V>select in interface UnsortedMapIterable<K,V>public MutableMap<K,V> reject(Predicate2<? super K,? super V> predicate)
reject in interface MapIterable<K,V>reject in interface MutableMap<K,V>reject in interface MutableMapIterable<K,V>reject in interface UnsortedMapIterable<K,V>public <R> MutableBag<R> collect(Function<? super V,? extends R> function)
collect in interface MutableMap<K,V>collect in interface UnsortedMapIterable<K,V>collect in interface RichIterable<V>public MutableBooleanBag collectBoolean(BooleanFunction<? super V> booleanFunction)
collectBoolean in interface MutableMap<K,V>collectBoolean in interface UnsortedMapIterable<K,V>collectBoolean in interface RichIterable<V>public MutableByteBag collectByte(ByteFunction<? super V> byteFunction)
collectByte in interface MutableMap<K,V>collectByte in interface UnsortedMapIterable<K,V>collectByte in interface RichIterable<V>public MutableCharBag collectChar(CharFunction<? super V> charFunction)
collectChar in interface MutableMap<K,V>collectChar in interface UnsortedMapIterable<K,V>collectChar in interface RichIterable<V>public MutableDoubleBag collectDouble(DoubleFunction<? super V> doubleFunction)
collectDouble in interface MutableMap<K,V>collectDouble in interface UnsortedMapIterable<K,V>collectDouble in interface RichIterable<V>public MutableFloatBag collectFloat(FloatFunction<? super V> floatFunction)
collectFloat in interface MutableMap<K,V>collectFloat in interface UnsortedMapIterable<K,V>collectFloat in interface RichIterable<V>public MutableIntBag collectInt(IntFunction<? super V> intFunction)
collectInt in interface MutableMap<K,V>collectInt in interface UnsortedMapIterable<K,V>collectInt in interface RichIterable<V>public MutableLongBag collectLong(LongFunction<? super V> longFunction)
collectLong in interface MutableMap<K,V>collectLong in interface UnsortedMapIterable<K,V>collectLong in interface RichIterable<V>public MutableShortBag collectShort(ShortFunction<? super V> shortFunction)
collectShort in interface MutableMap<K,V>collectShort in interface UnsortedMapIterable<K,V>collectShort in interface RichIterable<V>public <P,VV> MutableBag<VV> collectWith(Function2<? super V,? super P,? extends VV> function, P parameter)
collectWith in interface MutableMap<K,V>collectWith in interface UnsortedMapIterable<K,V>collectWith in interface RichIterable<V>public <R> MutableBag<R> collectIf(Predicate<? super V> predicate, Function<? super V,? extends R> function)
collectIf in interface MutableMap<K,V>collectIf in interface UnsortedMapIterable<K,V>collectIf in interface RichIterable<V>public <R> MutableBag<R> flatCollect(Function<? super V,? extends Iterable<R>> function)
flatCollect in interface MutableMap<K,V>flatCollect in interface UnsortedMapIterable<K,V>flatCollect in interface RichIterable<V>public MutableBag<V> select(Predicate<? super V> predicate)
select in interface MutableMap<K,V>select in interface MutableMapIterable<K,V>select in interface UnsortedMapIterable<K,V>select in interface RichIterable<V>public MutableMap<K,V> tap(Procedure<? super V> procedure)
tap in interface MapIterable<K,V>tap in interface MutableMap<K,V>tap in interface MutableMapIterable<K,V>tap in interface UnsortedMapIterable<K,V>tap in interface RichIterable<V>public <P> MutableBag<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface MutableMap<K,V>selectWith in interface MutableMapIterable<K,V>selectWith in interface UnsortedMapIterable<K,V>selectWith in interface RichIterable<V>public MutableBag<V> reject(Predicate<? super V> predicate)
reject in interface MutableMap<K,V>reject in interface MutableMapIterable<K,V>reject in interface UnsortedMapIterable<K,V>reject in interface RichIterable<V>public <P> MutableBag<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface MutableMap<K,V>rejectWith in interface MutableMapIterable<K,V>rejectWith in interface UnsortedMapIterable<K,V>rejectWith in interface RichIterable<V>public PartitionMutableBag<V> partition(Predicate<? super V> predicate)
partition in interface MutableMap<K,V>partition in interface MutableMapIterable<K,V>partition in interface UnsortedMapIterable<K,V>partition in interface RichIterable<V>public <P> PartitionMutableBag<V> partitionWith(Predicate2<? super V,? super P> predicate, P parameter)
partitionWith in interface MutableMap<K,V>partitionWith in interface UnsortedMapIterable<K,V>partitionWith in interface RichIterable<V>public <S> MutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableMap<K,V>selectInstancesOf in interface MutableMapIterable<K,V>selectInstancesOf in interface UnsortedMapIterable<K,V>selectInstancesOf in interface RichIterable<V>@Deprecated public <S> MutableBag<Pair<V,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface MutableMap<K,V>zip in interface MutableMapIterable<K,V>zip in interface UnsortedMapIterable<K,V>zip in interface RichIterable<V>@Deprecated public MutableSet<Pair<V,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface MutableMap<K,V>zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface UnsortedMapIterable<K,V>zipWithIndex in interface RichIterable<V>public MutableMap<K,V> withKeyValue(K key, V value)
withKeyValue in interface MutableMap<K,V>withKeyValue in interface MutableMapIterable<K,V>public MutableMap<K,V> withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
withAllKeyValues in interface MutableMap<K,V>withAllKeyValues in interface MutableMapIterable<K,V>public MutableMap<K,V> withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValues)
withAllKeyValueArguments in interface MutableMap<K,V>withAllKeyValueArguments in interface MutableMapIterable<K,V>public MutableMap<K,V> withoutKey(K key)
withoutKey in interface MutableMap<K,V>withoutKey in interface MutableMapIterable<K,V>public MutableMap<K,V> withoutAllKeys(Iterable<? extends K> keys)
withoutAllKeys in interface MutableMap<K,V>withoutAllKeys in interface MutableMapIterable<K,V>public <VV> MutableBagMultimap<VV,V> groupBy(Function<? super V,? extends VV> function)
groupBy in interface MutableMap<K,V>groupBy in interface MutableMapIterable<K,V>groupBy in interface UnsortedMapIterable<K,V>groupBy in interface RichIterable<V>public <VV> MutableBagMultimap<VV,V> groupByEach(Function<? super V,? extends Iterable<VV>> function)
groupByEach in interface MutableMap<K,V>groupByEach in interface MutableMapIterable<K,V>groupByEach in interface UnsortedMapIterable<K,V>groupByEach in interface RichIterable<V>public <VV> MutableMap<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface MutableMap<K,V>groupByUniqueKey in interface MutableMapIterable<K,V>groupByUniqueKey in interface UnsortedMapIterable<K,V>groupByUniqueKey in interface RichIterable<V>groupByUniqueKey in class AbstractMutableMapIterable<K,V>Copyright © 2004–2022. All rights reserved.