public abstract class AbstractSynchronizedMapIterable<K,V> extends AbstractSynchronizedRichIterable<V> implements MutableMapIterable<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
add(Pair<? extends K,? extends V> keyValuePair) |
<K1,V1,V2> MutableMapIterable<K1,V2> |
aggregateBy(Function<? super K,? extends K1> keyFunction,
Function<? super V,? extends V1> valueFunction,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V1,? extends V2> nonMutatingAggregator) |
<KK,VV> MutableMapIterable<KK,VV> |
aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<KK,VV> MutableMap<KK,VV> |
aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
<V1> MutableBag<V1> |
countBy(Function<? super V,? extends V1> function) |
<V1> MutableBag<V1> |
countByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1,P> MutableBag<V1> |
countByWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
Pair<K,V> |
detect(Predicate2<? super K,? super V> predicate) |
Optional<Pair<K,V>> |
detectOptional(Predicate2<? super K,? super V> predicate) |
void |
forEachKey(Procedure<? super K> procedure) |
void |
forEachKeyValue(Procedure2<? super K,? super V> procedure2) |
void |
forEachValue(Procedure<? super V> procedure) |
V |
get(Object key) |
V |
getIfAbsent(K key,
Function0<? extends V> function) |
V |
getIfAbsentPut(K key,
Function0<? extends V> function) |
V |
getIfAbsentPut(K key,
V value) |
<P> V |
getIfAbsentPutWith(K key,
Function<? super P,? extends V> function,
P parameter) |
V |
getIfAbsentPutWithKey(K key,
Function<? super K,? extends V> function) |
V |
getIfAbsentValue(K key,
V value) |
<P> V |
getIfAbsentWith(K key,
Function<? super P,? extends V> function,
P parameter) |
<V1> MutableMultimap<V1,V> |
groupBy(Function<? super V,? extends V1> function) |
<V1> MutableMultimap<V1,V> |
groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<VV> MutableMapIterable<VV,V> |
groupByUniqueKey(Function<? super V,? extends VV> function) |
<A> A |
ifPresentApply(K key,
Function<? super V,? extends A> function) |
RichIterable<K> |
keysView() |
RichIterable<Pair<K,V>> |
keyValuesView() |
PartitionMutableCollection<V> |
partition(Predicate<? super V> predicate) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
putPair(Pair<? extends K,? extends V> keyValuePair) |
MutableCollection<V> |
reject(Predicate<? super V> predicate) |
<P> MutableCollection<V> |
rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
V |
remove(Object key) |
boolean |
removeAllKeys(Set<? extends K> keys) |
boolean |
removeIf(Predicate2<? super K,? super V> predicate) |
V |
removeKey(K key) |
MutableCollection<V> |
select(Predicate<? super V> predicate) |
<S> MutableCollection<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableCollection<V> |
selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<V1> MutableObjectDoubleMap<V1> |
sumByDouble(Function<? super V,? extends V1> groupBy,
DoubleFunction<? super V> function) |
<V1> MutableObjectDoubleMap<V1> |
sumByFloat(Function<? super V,? extends V1> groupBy,
FloatFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
sumByInt(Function<? super V,? extends V1> groupBy,
IntFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
sumByLong(Function<? super V,? extends V1> groupBy,
LongFunction<? super V> function) |
MutableMapIterable<K,V> |
tap(Procedure<? super V> procedure) |
V |
updateValue(K key,
Function0<? extends V> factory,
Function<? super V,? extends V> function) |
<P> V |
updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter) |
RichIterable<V> |
valuesView() |
<S> MutableCollection<Pair<V,S>> |
zip(Iterable<S> that) |
MutableCollection<Pair<V,Integer>> |
zipWithIndex() |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, partitionWith, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitasSynchronized, asUnmodifiable, collect, collectValues, flip, flipUniqueValues, getOrDefault, newEmpty, putAllMapIterable, reject, select, toImmutable, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withMap, withMapIterable, withoutAllKeys, withoutKeyequals, hashCode, injectIntoKeyValue, parallelStream, spliterator, stream, toStringaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, 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, partitionWith, 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, forEachWithIndexcompute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuespublic V getIfAbsent(K key, Function0<? extends V> function)
getIfAbsent in interface MapIterable<K,V>public V getIfAbsentValue(K key, V value)
getIfAbsentValue in interface MapIterable<K,V>public <P> V getIfAbsentWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentWith in interface MapIterable<K,V>public <A> A ifPresentApply(K key, Function<? super V,? extends A> function)
ifPresentApply in interface MapIterable<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in interface MapIterable<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface MapIterable<K,V>public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface MapIterable<K,V>public void forEachKey(Procedure<? super K> procedure)
forEachKey in interface MapIterable<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure2)
forEachKeyValue in interface MapIterable<K,V>public Pair<K,V> detect(Predicate2<? super K,? super V> predicate)
detect in interface MapIterable<K,V>public Optional<Pair<K,V>> detectOptional(Predicate2<? super K,? super V> predicate)
detectOptional in interface MapIterable<K,V>public V getIfAbsentPut(K key, Function0<? extends V> function)
getIfAbsentPut in interface MutableMapIterable<K,V>public V getIfAbsentPut(K key, V value)
getIfAbsentPut in interface MutableMapIterable<K,V>public V getIfAbsentPutWithKey(K key, Function<? super K,? extends V> function)
getIfAbsentPutWithKey in interface MutableMapIterable<K,V>public <P> V getIfAbsentPutWith(K key, Function<? super P,? extends V> function, P parameter)
getIfAbsentPutWith in interface MutableMapIterable<K,V>public boolean removeAllKeys(Set<? extends K> keys)
removeAllKeys in interface MutableMapIterable<K,V>public boolean removeIf(Predicate2<? super K,? super V> predicate)
removeIf in interface MutableMapIterable<K,V>public V putPair(Pair<? extends K,? extends V> keyValuePair)
putPair in interface MutableMapIterable<K,V>public V add(Pair<? extends K,? extends V> keyValuePair)
add in interface MutableMapIterable<K,V>public V updateValue(K key, Function0<? extends V> factory, Function<? super V,? extends V> function)
updateValue in interface MutableMapIterable<K,V>public <P> V updateValueWith(K key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
updateValueWith in interface MutableMapIterable<K,V>public <VV> MutableMapIterable<VV,V> groupByUniqueKey(Function<? super V,? extends VV> function)
groupByUniqueKey in interface MutableMapIterable<K,V>groupByUniqueKey in interface RichIterable<V>groupByUniqueKey in class AbstractSynchronizedRichIterable<V>public <KK,VV> MutableMap<KK,VV> aggregateInPlaceBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV,? super V> mutatingAggregator)
aggregateInPlaceBy in interface MutableMapIterable<K,V>aggregateInPlaceBy in interface RichIterable<V>aggregateInPlaceBy in class AbstractSynchronizedRichIterable<V>public <KK,VV> MutableMapIterable<KK,VV> aggregateBy(Function<? super V,? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV,? super V,? extends VV> nonMutatingAggregator)
aggregateBy in interface MutableMapIterable<K,V>aggregateBy in interface RichIterable<V>aggregateBy in class AbstractSynchronizedRichIterable<V>public <K1,V1,V2> MutableMapIterable<K1,V2> aggregateBy(Function<? super K,? extends K1> keyFunction, Function<? super V,? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2,? super V1,? extends V2> nonMutatingAggregator)
aggregateBy in interface MapIterable<K,V>aggregateBy in interface MutableMapIterable<K,V>public RichIterable<K> keysView()
keysView in interface MapIterable<K,V>public RichIterable<V> valuesView()
valuesView in interface MapIterable<K,V>public RichIterable<Pair<K,V>> keyValuesView()
keyValuesView in interface MapIterable<K,V>public <V1> MutableObjectLongMap<V1> sumByInt(Function<? super V,? extends V1> groupBy, IntFunction<? super V> function)
sumByInt in interface MutableMapIterable<K,V>sumByInt in interface RichIterable<V>sumByInt in class AbstractSynchronizedRichIterable<V>public <V1> MutableObjectDoubleMap<V1> sumByFloat(Function<? super V,? extends V1> groupBy, FloatFunction<? super V> function)
sumByFloat in interface MutableMapIterable<K,V>sumByFloat in interface RichIterable<V>sumByFloat in class AbstractSynchronizedRichIterable<V>public <V1> MutableObjectLongMap<V1> sumByLong(Function<? super V,? extends V1> groupBy, LongFunction<? super V> function)
sumByLong in interface MutableMapIterable<K,V>sumByLong in interface RichIterable<V>sumByLong in class AbstractSynchronizedRichIterable<V>public <V1> MutableObjectDoubleMap<V1> sumByDouble(Function<? super V,? extends V1> groupBy, DoubleFunction<? super V> function)
sumByDouble in interface MutableMapIterable<K,V>sumByDouble in interface RichIterable<V>sumByDouble in class AbstractSynchronizedRichIterable<V>public <V1> MutableMultimap<V1,V> groupBy(Function<? super V,? extends V1> function)
groupBy in interface MutableMapIterable<K,V>groupBy in interface RichIterable<V>groupBy in class AbstractSynchronizedRichIterable<V>public <V1> MutableMultimap<V1,V> groupByEach(Function<? super V,? extends Iterable<V1>> function)
groupByEach in interface MutableMapIterable<K,V>groupByEach in interface RichIterable<V>groupByEach in class AbstractSynchronizedRichIterable<V>public <S> MutableCollection<Pair<V,S>> zip(Iterable<S> that)
zip in interface MutableMapIterable<K,V>zip in interface RichIterable<V>zip in class AbstractSynchronizedRichIterable<V>public MutableCollection<Pair<V,Integer>> zipWithIndex()
zipWithIndex in interface MutableMapIterable<K,V>zipWithIndex in interface RichIterable<V>zipWithIndex in class AbstractSynchronizedRichIterable<V>public MutableCollection<V> select(Predicate<? super V> predicate)
select in interface MutableMapIterable<K,V>select in interface RichIterable<V>select in class AbstractSynchronizedRichIterable<V>public <S> MutableCollection<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface MutableMapIterable<K,V>selectInstancesOf in interface RichIterable<V>selectInstancesOf in class AbstractSynchronizedRichIterable<V>public <P> MutableCollection<V> selectWith(Predicate2<? super V,? super P> predicate, P parameter)
selectWith in interface MutableMapIterable<K,V>selectWith in interface RichIterable<V>selectWith in class AbstractSynchronizedRichIterable<V>public <P> MutableCollection<V> rejectWith(Predicate2<? super V,? super P> predicate, P parameter)
rejectWith in interface MutableMapIterable<K,V>rejectWith in interface RichIterable<V>rejectWith in class AbstractSynchronizedRichIterable<V>public PartitionMutableCollection<V> partition(Predicate<? super V> predicate)
partition in interface MutableMapIterable<K,V>partition in interface RichIterable<V>partition in class AbstractSynchronizedRichIterable<V>public <V1> MutableBag<V1> countBy(Function<? super V,? extends V1> function)
countBy in interface MutableMapIterable<K,V>countBy in interface RichIterable<V>countBy in class AbstractSynchronizedRichIterable<V>public <V1,P> MutableBag<V1> countByWith(Function2<? super V,? super P,? extends V1> function, P parameter)
countByWith in interface MutableMapIterable<K,V>countByWith in interface RichIterable<V>countByWith in class AbstractSynchronizedRichIterable<V>public <V1> MutableBag<V1> countByEach(Function<? super V,? extends Iterable<V1>> function)
countByEach in interface MutableMapIterable<K,V>countByEach in interface RichIterable<V>countByEach in class AbstractSynchronizedRichIterable<V>public MutableCollection<V> reject(Predicate<? super V> predicate)
reject in interface MutableMapIterable<K,V>reject in interface RichIterable<V>reject in class AbstractSynchronizedRichIterable<V>public MutableMapIterable<K,V> tap(Procedure<? super V> procedure)
tap in interface MapIterable<K,V>tap in interface MutableMapIterable<K,V>tap in interface RichIterable<V>tap in class AbstractSynchronizedRichIterable<V>Copyright © 2004–2022. All rights reserved.