| Package | Description |
|---|---|
| org.eclipse.collections.api |
This package contains interfaces for Eclipse Collections API.
|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
| org.eclipse.collections.api.bimap |
This package contains interfaces for BiMap API.
|
| org.eclipse.collections.api.collection | |
| org.eclipse.collections.api.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| org.eclipse.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
| org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| org.eclipse.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| org.eclipse.collections.api.multimap |
This package contains interfaces for
Multimap. |
| org.eclipse.collections.api.multimap.bag |
This package contains interfaces for
BagMultimap. |
| org.eclipse.collections.api.multimap.list |
This package contains interfaces for
ListMultimap. |
| org.eclipse.collections.api.multimap.ordered | |
| org.eclipse.collections.api.multimap.set |
This package contains interfaces for
SetMultimap. |
| org.eclipse.collections.api.multimap.sortedbag |
This package contains interfaces for
SortedBagMultimap. |
| org.eclipse.collections.api.multimap.sortedset |
This package contains interfaces for
SortedSetMultimap. |
| org.eclipse.collections.api.ordered | |
| org.eclipse.collections.api.set |
This package contains interfaces for set API which enhance the performance and functionality of
Set. |
| org.eclipse.collections.api.set.sorted |
This package contains interfaces for sorted set API.
|
| org.eclipse.collections.api.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
default <K,V> MapIterable<K,V> |
RichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function.
|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
default <K,V,R extends MutableMapIterable<K,V>> |
RichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator,
R target)
Applies an aggregate function over the iterable grouping results into the target map based on the specific
groupBy function.
|
<P,V> RichIterable<V> |
RichIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter)
Same as
RichIterable.collect(Function) with a Function2 and specified parameter which is passed to the block. |
<P,V> ParallelIterable<V> |
ParallelIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> LazyIterable<V> |
LazyIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V,R extends Collection<V>> |
RichIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection)
Same as collectWith but with a targetCollection parameter to gather the results.
|
default <V,P> Bag<V> |
RichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter)
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection with the specified parameter as the second argument.
|
default <V,P,R extends MutableBagIterable<V>> |
RichIterable.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R target)
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection with the specified parameter as the second argument.
|
default <P,V> RichIterable<V> |
RichIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> LazyIterable<V> |
LazyIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V,R extends Collection<V>> |
RichIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter,
R target) |
<IV> IV |
RichIterable.injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
Returns the final result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
default <K,V,R extends MutableMapIterable<K,V>> |
Bag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator,
R target)
Applies an aggregate function over the iterable grouping results into the target map based on the specific
groupBy function.
|
<P,V> UnsortedBag<V> |
UnsortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelUnsortedBag<V> |
ParallelUnsortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableBag<V> |
MutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableBag<V> |
ImmutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> MutableBag<V> |
MutableBag.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> ImmutableBag<V> |
ImmutableBag.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> UnsortedBag<V> |
UnsortedBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> MutableBag<V> |
MutableBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableBag<V> |
ImmutableBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ListIterable<V> |
SortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelListIterable<V> |
ParallelSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableList<V> |
MutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableList<V> |
ImmutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> MutableBag<V> |
MutableSortedBag.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> ImmutableBag<V> |
ImmutableSortedBag.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> ListIterable<V> |
SortedBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> MutableList<V> |
MutableSortedBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableList<V> |
ImmutableSortedBag.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
default <K1,V1,V2> MutableMap<K1,V2> |
MutableBiMap.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) |
default <K1,V1,V2> ImmutableMap<K1,V2> |
ImmutableBiMap.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) |
default <KK,VV> MutableMap<KK,VV> |
MutableBiMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
default <KK,VV> ImmutableMap<KK,VV> |
ImmutableBiMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<K2,V2> MutableBiMap<K2,V2> |
MutableBiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBiMap<K2,V2> |
ImmutableBiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> BiMap<K2,V2> |
BiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function)
For each key and value of the map the function is evaluated.
|
<R> MutableBiMap<K,R> |
MutableBiMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> ImmutableBiMap<K,R> |
ImmutableBiMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> BiMap<K,R> |
BiMap.collectValues(Function2<? super K,? super V,? extends R> function)
For each key and value of the map the function is evaluated.
|
<P,V1> ImmutableBagIterable<V1> |
ImmutableBiMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
default <P,V1> ImmutableBagIterable<V1> |
ImmutableBiMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
default <K,V> MutableMap<K,V> |
MutableCollection.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
default <K,V> ImmutableMap<K,V> |
ImmutableCollection.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<P,V> MutableCollection<V> |
MutableCollection.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter)
Same as
RichIterable.collect(Function) with a Function2 and specified parameter which is passed to the block. |
<P,V> ImmutableCollection<V> |
ImmutableCollection.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> MutableBag<V> |
MutableCollection.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> ImmutableBag<V> |
ImmutableCollection.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> MutableCollection<V> |
MutableCollection.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableCollection<V> |
ImmutableCollection.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ParallelListIterable<V> |
ParallelListIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> MutableList<V> |
MutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ListIterable<V> |
ListIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableList<V> |
ImmutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> MutableList<V> |
MutableList.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ListIterable<V> |
ListIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableList<V> |
ImmutableList.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
default <K1,V1,V2> MutableMapIterable<K1,V2> |
MutableMapIterable.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) |
default <K1,V1,V2> MutableMap<K1,V2> |
MutableMap.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) |
default <K1,V1,V2> MapIterable<K1,V2> |
MapIterable.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)
Applies an aggregate function over the map grouping results into a map based on the specific key and value groupBy functions.
|
default <K1,V1,V2> ImmutableOrderedMap<K1,V2> |
ImmutableOrderedMap.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) |
default <K1,V1,V2> ImmutableMapIterable<K1,V2> |
ImmutableMapIterable.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) |
default <K1,V1,V2> ImmutableMap<K1,V2> |
ImmutableMap.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) |
default <KK,VV> MutableMapIterable<KK,VV> |
MutableMapIterable.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
default <KK,VV> MutableMap<KK,VV> |
MutableMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<KK,VV> ImmutableOrderedMap<KK,VV> |
ImmutableOrderedMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
default <KK,VV> ImmutableMapIterable<KK,VV> |
ImmutableMapIterable.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
default <KK,VV> ImmutableMap<KK,VV> |
ImmutableMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<K2,V2> UnsortedMapIterable<K2,V2> |
UnsortedMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> OrderedMap<K2,V2> |
OrderedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableOrderedMap<K2,V2> |
MutableOrderedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableMapIterable<K2,V2> |
MutableMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableMap<K2,V2> |
MutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MapIterable<K2,V2> |
MapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function)
For each key and value of the map the function is evaluated.
|
<K2,V2> ImmutableOrderedMap<K2,V2> |
ImmutableOrderedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableMapIterable<K2,V2> |
ImmutableMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> UnsortedMapIterable<K,R> |
UnsortedMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> OrderedMap<K,R> |
OrderedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableOrderedMap<K,R> |
MutableOrderedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableMapIterable<K,R> |
MutableMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableMap<K,R> |
MutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MapIterable<K,R> |
MapIterable.collectValues(Function2<? super K,? super V,? extends R> function)
For each key and value of the map the function is evaluated.
|
<R> ImmutableOrderedMap<K,R> |
ImmutableOrderedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> ImmutableMapIterable<K,R> |
ImmutableMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> ImmutableMap<K,R> |
ImmutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<P,V1> Bag<V1> |
UnsortedMapIterable.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,V1> ListIterable<V1> |
OrderedMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,V1> MutableList<V1> |
MutableOrderedMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,V1> MutableBag<V1> |
MutableMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,V1> ImmutableList<V1> |
ImmutableOrderedMap.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,VV> ImmutableBag<VV> |
ImmutableMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
default <V1,P> MutableBag<V1> |
MutableMapIterable.countByWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
default <V1,P> ImmutableBag<V1> |
ImmutableMapIterable.countByWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
default <P,R> MutableBag<R> |
MutableMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<R>> function,
P parameter) |
default <P,R> ImmutableBag<R> |
ImmutableMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<R>> function,
P parameter) |
default <P,V1> Bag<V1> |
UnsortedMapIterable.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
default <P,V1> ListIterable<V1> |
OrderedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
default <P,V1> MutableList<V1> |
MutableOrderedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
default <P,V1> ImmutableList<V1> |
ImmutableOrderedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
<P> V |
MutableMapIterable.updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableMapIterable.updateValue(Object, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
| Modifier and Type | Method and Description |
|---|---|
default <K,VV> MutableMap<K,VV> |
MutablePrimitiveObjectMap.aggregateBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
default <K,VV> ImmutableMap<K,VV> |
ImmutablePrimitiveObjectMap.aggregateBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<P,VV> Bag<VV> |
PrimitiveObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableBag<VV> |
MutablePrimitiveObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableBag<VV> |
ImmutablePrimitiveObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
default <P,VV> Bag<VV> |
PrimitiveObjectMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function,
P parameter) |
default <P,VV> MutableBag<VV> |
MutablePrimitiveObjectMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function,
P parameter) |
default <P,VV> ImmutableBag<VV> |
ImmutablePrimitiveObjectMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<VV>> function,
P parameter) |
<P> V |
MutableByteObjectMap.updateValueWith(byte key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableCharObjectMap.updateValueWith(char key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableDoubleObjectMap.updateValueWith(double key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableFloatObjectMap.updateValueWith(float key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableIntObjectMap.updateValueWith(int key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableLongObjectMap.updateValueWith(long key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableShortObjectMap.updateValueWith(short key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
| Modifier and Type | Method and Description |
|---|---|
default <K1,V1,V2> ImmutableMap<K1,V2> |
ImmutableSortedMap.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) |
default <KK,VV> ImmutableMap<KK,VV> |
ImmutableSortedMap.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<K2,V2> UnsortedMapIterable<K2,V2> |
SortedMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> SortedMapIterable<K,R> |
SortedMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableSortedMap<K,R> |
MutableSortedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> ImmutableSortedMap<K,R> |
ImmutableSortedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<P,V1> ListIterable<V1> |
SortedMapIterable.collectWith(Function2<? super V,? super P,? extends V1> function,
P parameter) |
<P,VV> MutableList<VV> |
MutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableList<VV> |
ImmutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
default <P,R> MutableList<R> |
MutableSortedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<R>> function,
P parameter) |
default <P,R> ImmutableList<R> |
ImmutableSortedMap.flatCollectWith(Function2<? super V,? super P,? extends Iterable<R>> function,
P parameter) |
default <P,V1> ListIterable<V1> |
SortedMapIterable.flatCollectWith(Function2<? super V,? super P,? extends Iterable<V1>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> MutableMultimap<K2,V2> |
MutableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> Multimap<K2,V2> |
Multimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function)
Returns a new multimap with the results of applying the specified function on each key and value of the source
multimap.
|
<K2,V2> ImmutableMultimap<K2,V2> |
ImmutableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2,R extends MutableMultimap<K2,V2>> |
Multimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function,
R target)
Same as the collect method but uses the specified target multimap for the results.
|
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> UnsortedBagMultimap<K2,V2> |
UnsortedBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagMultimap<K2,V2> |
MutableBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagIterableMultimap<K2,V2> |
MutableBagIterableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagMultimap<K2,V2> |
ImmutableBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagIterableMultimap<K2,V2> |
ImmutableBagIterableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> MutableBagMultimap<K2,V2> |
MutableListMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> BagMultimap<K2,V2> |
ListMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagMultimap<K2,V2> |
ImmutableListMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> BagMultimap<K2,V2> |
OrderedIterableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> UnsortedBagMultimap<K2,V2> |
UnsortedSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagMultimap<K2,V2> |
MutableSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagIterableMultimap<K2,V2> |
MutableSetIterableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagMultimap<K2,V2> |
ImmutableSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagIterableMultimap<K2,V2> |
ImmutableSetIterableMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> BagMultimap<K2,V2> |
SortedBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagMultimap<K2,V2> |
MutableSortedBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagMultimap<K2,V2> |
ImmutableSortedBagMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> BagMultimap<K2,V2> |
SortedSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBagMultimap<K2,V2> |
MutableSortedSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBagMultimap<K2,V2> |
ImmutableSortedSetMultimap.collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ReversibleIterable<V> |
ReversibleIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> OrderedIterable<V> |
OrderedIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> ReversibleIterable<V> |
ReversibleIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> OrderedIterable<V> |
OrderedIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> UnsortedSetIterable<V> |
UnsortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableSet<V> |
MutableSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableSet<V> |
ImmutableSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> UnsortedSetIterable<V> |
UnsortedSetIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> MutableSet<V> |
MutableSet.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableSet<V> |
ImmutableSet.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ListIterable<V> |
SortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelListIterable<V> |
ParallelSortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableList<V> |
MutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableList<V> |
ImmutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> ListIterable<V> |
SortedSetIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> MutableList<V> |
MutableSortedSet.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableList<V> |
ImmutableSortedSet.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
default <K,V> MutableMap<K,V> |
MutableStack.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
default <K,V> ImmutableMap<K,V> |
ImmutableStack.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<P,V> StackIterable<V> |
StackIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableStack<V> |
MutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ImmutableStack<V> |
ImmutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> MutableBag<V> |
MutableStack.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V,P> ImmutableBag<V> |
ImmutableStack.countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <P,V> StackIterable<V> |
StackIterable.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> MutableStack<V> |
MutableStack.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
default <P,V> ImmutableStack<V> |
ImmutableStack.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
Copyright © 2004–2022. All rights reserved.