| 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 |
|---|---|
<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) |
<K,V> MapIterable<K,V> |
RichIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function.
|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> RichIterable<V> |
RichIterable.collect(Function<? super T,? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
<V> ParallelIterable<V> |
ParallelIterable.collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> LazyIterable<V> |
LazyIterable.collect(Function<? super T,? extends V> function)
Creates a deferred iterable for collecting elements from the current iterable.
|
<V,R extends Collection<V>> |
RichIterable.collect(Function<? super T,? extends V> function,
R target)
Same as
RichIterable.collect(Function), except that the results are gathered into the specified target
collection. |
<V> RichIterable<V> |
RichIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection, but only for those elements which return true upon evaluation of the predicate.
|
<V> ParallelIterable<V> |
ParallelIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
<V> LazyIterable<V> |
LazyIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a deferred iterable for selecting and collecting elements from the current iterable.
|
<V,R extends Collection<V>> |
RichIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function,
R target)
Same as the collectIf method with two parameters but uses the specified target collection for the results.
|
default <V> Bag<V> |
RichIterable.countBy(Function<? super T,? extends V> function)
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection.
|
default <V,R extends MutableBagIterable<V>> |
RichIterable.countBy(Function<? super T,? extends V> function,
R target)
This method will count the number of occurrences of each value calculated by applying the
function to each element of the collection.
|
<V> RichIterable<V> |
RichIterable.flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect is a special case of RichIterable.collect(Function). |
<V> ParallelIterable<V> |
ParallelIterable.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.
|
<V> LazyIterable<V> |
LazyIterable.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a deferred flattening iterable for the current iterable.
|
<V,R extends Collection<V>> |
RichIterable.flatCollect(Function<? super T,? extends Iterable<V>> function,
R target)
Same as flatCollect, only the results are collected into the target collection.
|
<V> Multimap<V,T> |
RichIterable.groupBy(Function<? super T,? extends V> function)
For each element of the iterable, the function is evaluated and the results of these evaluations are collected
into a new multimap, where the transformed value is the key and the original values are added to the same (or similar)
species of collection as the source iterable.
|
<V> Multimap<V,T> |
ParallelIterable.groupBy(Function<? super T,? extends V> function) |
<V,R extends MutableMultimap<V,T>> |
RichIterable.groupBy(Function<? super T,? extends V> function,
R target)
Same as
RichIterable.groupBy(Function), except that the results are gathered into the specified target
multimap. |
<V> Multimap<V,T> |
RichIterable.groupByEach(Function<? super T,? extends Iterable<V>> function)
Similar to
RichIterable.groupBy(Function), except the result of evaluating function will return a collection of keys
for each value. |
<V> Multimap<V,T> |
ParallelIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V,R extends MutableMultimap<V,T>> |
RichIterable.groupByEach(Function<? super T,? extends Iterable<V>> function,
R target)
Same as
RichIterable.groupByEach(Function), except that the results are gathered into the specified target
multimap. |
<V> MapIterable<V,T> |
RichIterable.groupByUniqueKey(Function<? super T,? extends V> function)
For each element of the iterable, the function is evaluated and he results of these evaluations are collected
into a new map, where the transformed value is the key.
|
<V> MapIterable<V,T> |
ParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
<V,R extends MutableMap<V,T>> |
RichIterable.groupByUniqueKey(Function<? super T,? extends V> function,
R target)
Same as
RichIterable.groupByUniqueKey(Function), except that the results are gathered into the specified target
map. |
<V extends Comparable<? super V>> |
RichIterable.maxBy(Function<? super T,? extends V> function)
Returns the maximum elements out of this container based on the natural order of the attribute returned by Function.
|
<V extends Comparable<? super V>> |
ParallelIterable.maxBy(Function<? super T,? extends V> function) |
default <V extends Comparable<? super V>> |
RichIterable.maxByOptional(Function<? super T,? extends V> function)
Returns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional.
|
<V extends Comparable<? super V>> |
RichIterable.minBy(Function<? super T,? extends V> function)
Returns the minimum elements out of this container based on the natural order of the attribute returned by Function.
|
<V extends Comparable<? super V>> |
ParallelIterable.minBy(Function<? super T,? extends V> function) |
default <V extends Comparable<? super V>> |
RichIterable.minByOptional(Function<? super T,? extends V> function)
Returns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional.
|
<V> ObjectDoubleMap<V> |
RichIterable.sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function)
Groups and sums the values using the two specified functions.
|
<V> ObjectDoubleMap<V> |
RichIterable.sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function)
Groups and sums the values using the two specified functions.
|
<V> ObjectLongMap<V> |
RichIterable.sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function)
Groups and sums the values using the two specified functions.
|
<V> ObjectLongMap<V> |
RichIterable.sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function)
Groups and sums the values using the two specified functions.
|
<NK,NV> MutableMap<NK,NV> |
RichIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableMap implementation using the specified key and value functions.
|
<NK,NV> MutableMap<NK,NV> |
RichIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableMap implementation using the specified key and value functions.
|
<NK,NV> MutableMap<NK,NV> |
ParallelIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableMap<NK,NV> |
ParallelIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<V extends Comparable<? super V>> |
RichIterable.toSortedBagBy(Function<? super T,? extends V> function)
Converts the collection to a MutableSortedBag implementation and sorts it based on the natural order of the
attribute returned by
function. |
<V extends Comparable<? super V>> |
ParallelIterable.toSortedBagBy(Function<? super T,? extends V> function) |
<V extends Comparable<? super V>> |
RichIterable.toSortedListBy(Function<? super T,? extends V> function)
Converts the collection to a MutableList implementation and sorts it based on the natural order of the
attribute returned by
function. |
<V extends Comparable<? super V>> |
ParallelIterable.toSortedListBy(Function<? super T,? extends V> function) |
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the given comparator.
|
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the given comparator.
|
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the key elements' natural ordering.
|
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the key elements' natural ordering.
|
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<V extends Comparable<? super V>> |
RichIterable.toSortedSetBy(Function<? super T,? extends V> function)
Converts the collection to a MutableSortedSet implementation and sorts it based on the natural order of the
attribute returned by
function. |
<V extends Comparable<? super V>> |
ParallelIterable.toSortedSetBy(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableBag<V> |
MutableBag.collect(Function<? super T,? extends V> function) |
<V> ImmutableBag<V> |
ImmutableBag.collect(Function<? super T,? extends V> function) |
<V> UnsortedBag<V> |
UnsortedBag.collect(Function<? super T,? extends V> function) |
<V> ParallelUnsortedBag<V> |
ParallelUnsortedBag.collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> MutableBag<V> |
MutableBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableBag<V> |
ImmutableBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> UnsortedBag<V> |
UnsortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ParallelUnsortedBag<V> |
ParallelUnsortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
default <V> MutableBag<V> |
MutableBag.countBy(Function<? super T,? extends V> function) |
default <V> ImmutableBag<V> |
ImmutableBag.countBy(Function<? super T,? extends V> function) |
<V> MutableBag<V> |
MutableBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableBag<V> |
ImmutableBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedBag<V> |
UnsortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ParallelUnsortedBag<V> |
ParallelUnsortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.
|
<V> MutableBagMultimap<V,T> |
MutableBag.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableBagMultimap<V,T> |
ImmutableBag.groupBy(Function<? super T,? extends V> function) |
<V> UnsortedBagMultimap<V,T> |
UnsortedBag.groupBy(Function<? super T,? extends V> function) |
<V> UnsortedBagMultimap<V,T> |
ParallelUnsortedBag.groupBy(Function<? super T,? extends V> function) |
<V> BagMultimap<V,T> |
ParallelBag.groupBy(Function<? super T,? extends V> function) |
<V> MutableBagIterableMultimap<V,T> |
MutableBagIterable.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableBagIterableMultimap<V,T> |
ImmutableBagIterable.groupBy(Function<? super T,? extends V> function) |
<V> BagMultimap<V,T> |
Bag.groupBy(Function<? super T,? extends V> function) |
<V> MutableBagMultimap<V,T> |
MutableBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableBagMultimap<V,T> |
ImmutableBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedBagMultimap<V,T> |
UnsortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedBagMultimap<V,T> |
ParallelUnsortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> BagMultimap<V,T> |
ParallelBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableBagIterableMultimap<V,T> |
MutableBagIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableBagIterableMultimap<V,T> |
ImmutableBagIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> BagMultimap<V,T> |
Bag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
MutableSortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an MutableMap that's backed by a LinkedHashMap.
|
<K,V> ImmutableMap<K,V> |
ImmutableSortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an ImmutableMap that's backed by a LinkedHashMap.
|
<K,V> MapIterable<K,V> |
SortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an MapIterable that's backed by a LinkedHashMap.
|
<K,V> MutableMap<K,V> |
MutableSortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an MutableMap that's backed by a LinkedHashMap.
|
<K,V> ImmutableMap<K,V> |
ImmutableSortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an ImmutableMap that's backed by a LinkedHashMap.
|
<K,V> MapIterable<K,V> |
SortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an MapIterable that's backed by a LinkedHashMap.
|
<V> MutableList<V> |
MutableSortedBag.collect(Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableSortedBag.collect(Function<? super T,? extends V> function) |
<V> ListIterable<V> |
SortedBag.collect(Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelSortedBag.collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> MutableList<V> |
MutableSortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableSortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ListIterable<V> |
SortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelSortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
default <V> MutableBag<V> |
MutableSortedBag.countBy(Function<? super T,? extends V> function) |
default <V> ImmutableBag<V> |
ImmutableSortedBag.countBy(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableList<V> |
ImmutableSortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ListIterable<V> |
SortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ParallelListIterable<V> |
ParallelSortedBag.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.
|
<V> MutableSortedBagMultimap<V,T> |
MutableSortedBag.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableSortedBagMultimap<V,T> |
ImmutableSortedBag.groupBy(Function<? super T,? extends V> function) |
<V> SortedBagMultimap<V,T> |
SortedBag.groupBy(Function<? super T,? extends V> function) |
<V> SortedBagMultimap<V,T> |
ParallelSortedBag.groupBy(Function<? super T,? extends V> function) |
<V> MutableSortedBagMultimap<V,T> |
MutableSortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableSortedBagMultimap<V,T> |
ImmutableSortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SortedBagMultimap<V,T> |
SortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SortedBagMultimap<V,T> |
ParallelSortedBag.groupByEach(Function<? super T,? extends Iterable<V>> function) |
| Modifier and Type | Method and Description |
|---|---|
<V1> ImmutableBagIterable<V1> |
ImmutableBiMap.collect(Function<? super V,? extends V1> function) |
<V1> ImmutableBagIterable<V1> |
ImmutableBiMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<V1> ImmutableBagIterable<V1> |
ImmutableBiMap.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<V1> MutableSetMultimap<V1,V> |
MutableBiMap.groupBy(Function<? super V,? extends V1> function) |
<V1> ImmutableSetMultimap<V1,V> |
ImmutableBiMap.groupBy(Function<? super V,? extends V1> function) |
<V1> SetMultimap<V1,V> |
BiMap.groupBy(Function<? super V,? extends V1> function) |
<V1> MutableSetMultimap<V1,V> |
MutableBiMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> ImmutableSetMultimap<V1,V> |
ImmutableBiMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> SetMultimap<V1,V> |
BiMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<VV> MutableBiMap<VV,V> |
MutableBiMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> ImmutableBiMap<VV,V> |
ImmutableBiMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> BiMap<VV,V> |
BiMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<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) |
<K,V> MutableMap<K,V> |
MutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> ImmutableMap<K,V> |
ImmutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MutableCollection<V> |
MutableCollection.collect(Function<? super T,? extends V> function)
Returns a new MutableCollection with the results of applying the specified function to each element of the source
collection.
|
<V> ImmutableCollection<V> |
ImmutableCollection.collect(Function<? super T,? extends V> function) |
<V> MutableCollection<V> |
MutableCollection.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Returns a new MutableCollection with the results of applying the specified function to each element of the source
collection, but only for elements that evaluate to true for the specified predicate.
|
<V> ImmutableCollection<V> |
ImmutableCollection.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
default <V> MutableBag<V> |
MutableCollection.countBy(Function<? super T,? extends V> function) |
default <V> ImmutableBag<V> |
ImmutableCollection.countBy(Function<? super T,? extends V> function) |
<V> MutableCollection<V> |
MutableCollection.flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect is a special case of RichIterable.collect(Function). |
<V> ImmutableCollection<V> |
ImmutableCollection.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> MutableMultimap<V,T> |
MutableCollection.groupBy(Function<? super T,? extends V> function)
For each element of the iterable, the function is evaluated and the results of these evaluations are collected
into a new multimap, where the transformed value is the key and the original values are added to the same (or similar)
species of collection as the source iterable.
|
<V> ImmutableMultimap<V,T> |
ImmutableCollection.groupBy(Function<? super T,? extends V> function) |
<V> MutableMultimap<V,T> |
MutableCollection.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableMultimap<V,T> |
ImmutableCollection.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableMap<V,T> |
MutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> ImmutableMap<V,T> |
ImmutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MutableObjectDoubleMap<V> |
MutableCollection.sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> ImmutableObjectDoubleMap<V> |
ImmutableCollection.sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
MutableCollection.sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> ImmutableObjectDoubleMap<V> |
ImmutableCollection.sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
MutableCollection.sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
ImmutableCollection.sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
MutableCollection.sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
ImmutableCollection.sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> ListIterable<V> |
ListIterable.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableList.collect(Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableList.collect(Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelListIterable.collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> ListIterable<V> |
ListIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableList.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableList.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelListIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
<V> ListIterable<T> |
ListIterable.distinctBy(Function<? super T,? extends V> function)
Returns a new
ListIterable containing the distinct elements in this list. |
<V> MutableList<T> |
MutableList.distinctBy(Function<? super T,? extends V> function) |
<V> ImmutableList<T> |
ImmutableList.distinctBy(Function<? super T,? extends V> function) |
<V> ListIterable<V> |
ListIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> MutableList<V> |
MutableList.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableList<V> |
ImmutableList.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ParallelListIterable<V> |
ParallelListIterable.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.
|
<V> ListMultimap<V,T> |
ListIterable.groupBy(Function<? super T,? extends V> function) |
<V> MutableListMultimap<V,T> |
MutableList.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableListMultimap<V,T> |
ImmutableList.groupBy(Function<? super T,? extends V> function) |
<V> ListMultimap<V,T> |
ParallelListIterable.groupBy(Function<? super T,? extends V> function) |
<V> ListMultimap<V,T> |
ListIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableListMultimap<V,T> |
MutableList.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableListMultimap<V,T> |
ImmutableList.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ListMultimap<V,T> |
ParallelListIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V extends Comparable<? super V>> |
MutableList.sortThisBy(Function<? super T,? extends V> function)
Sorts the internal data structure of this list based on the natural order of the attribute returned by
function. |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> MutableMap<K2,V2> |
MutableMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<KK,VV> MutableMap<KK,VV> |
MutableMapIterable.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<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) |
<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) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
<K2,V2> MutableMap<K2,V2> |
MutableMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
<KK,VV> MutableMap<KK,VV> |
MutableMapIterable.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<KK,VV> ImmutableMapIterable<KK,VV> |
ImmutableMapIterable.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<KK,VV> ImmutableOrderedMap<KK,VV> |
ImmutableOrderedMap.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<R> MutableBag<R> |
MutableMap.collect(Function<? super V,? extends R> function) |
<V1> Bag<V1> |
UnsortedMapIterable.collect(Function<? super V,? extends V1> function) |
<VV> ImmutableBag<VV> |
ImmutableMap.collect(Function<? super V,? extends VV> function) |
<VV> ListIterable<VV> |
OrderedMap.collect(Function<? super V,? extends VV> function) |
<VV> MutableList<VV> |
MutableOrderedMap.collect(Function<? super V,? extends VV> function) |
<VV> ImmutableList<VV> |
ImmutableOrderedMap.collect(Function<? super V,? extends VV> function) |
<R> ImmutableBag<R> |
ImmutableMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<R> MutableBag<R> |
MutableMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<V1> Bag<V1> |
UnsortedMapIterable.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<V1> ListIterable<V1> |
OrderedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<V1> MutableList<V1> |
MutableOrderedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<V1> ImmutableList<V1> |
ImmutableOrderedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<E> MutableMap<K,V> |
MutableMap.collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
iterable to this. |
<E> MutableMap<K,V> |
MutableMap.collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
iterable to this. |
default <V1> MutableBag<V1> |
MutableMapIterable.countBy(Function<? super V,? extends V1> function) |
default <V1> ImmutableBag<V1> |
ImmutableMapIterable.countBy(Function<? super V,? extends V1> function) |
<R> ImmutableBag<R> |
ImmutableMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
<R> MutableBag<R> |
MutableMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
<V1> Bag<V1> |
UnsortedMapIterable.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<V1> ListIterable<V1> |
OrderedMap.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<V1> MutableList<V1> |
MutableOrderedMap.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<V1> ImmutableList<V1> |
ImmutableOrderedMap.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<P> V |
MutableMapIterable.getIfAbsentPutWith(K key,
Function<? super P,? extends V> function,
P parameter)
Get and return the value in the Map at the specified key.
|
V |
MutableMapIterable.getIfAbsentPutWithKey(K key,
Function<? super K,? extends V> function)
Get and return the value in the Map at the specified key.
|
<P> V |
MapIterable.getIfAbsentWith(K key,
Function<? super P,? extends V> function,
P parameter)
Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the
result of evaluating the specified function and parameter.
|
<V1> MutableMultimap<V1,V> |
MutableMapIterable.groupBy(Function<? super V,? extends V1> function) |
<V1> ImmutableMultimap<V1,V> |
ImmutableMapIterable.groupBy(Function<? super V,? extends V1> function) |
<V1> BagMultimap<V1,V> |
UnsortedMapIterable.groupBy(Function<? super V,? extends V1> function) |
<V1> ListMultimap<V1,V> |
OrderedMap.groupBy(Function<? super V,? extends V1> function) |
<V1> MutableListMultimap<V1,V> |
MutableOrderedMap.groupBy(Function<? super V,? extends V1> function) |
<V1> ImmutableListMultimap<V1,V> |
ImmutableOrderedMap.groupBy(Function<? super V,? extends V1> function) |
<VV> ImmutableBagMultimap<VV,V> |
ImmutableMap.groupBy(Function<? super V,? extends VV> function) |
<VV> MutableBagMultimap<VV,V> |
MutableMap.groupBy(Function<? super V,? extends VV> function) |
<V1> MutableMultimap<V1,V> |
MutableMapIterable.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> ImmutableMultimap<V1,V> |
ImmutableMapIterable.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> BagMultimap<V1,V> |
UnsortedMapIterable.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> ListMultimap<V1,V> |
OrderedMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> MutableListMultimap<V1,V> |
MutableOrderedMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<V1> ImmutableListMultimap<V1,V> |
ImmutableOrderedMap.groupByEach(Function<? super V,? extends Iterable<V1>> function) |
<VV> ImmutableBagMultimap<VV,V> |
ImmutableMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> MutableBagMultimap<VV,V> |
MutableMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<V1> MutableMapIterable<V1,V> |
MutableMapIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> ImmutableMapIterable<V1,V> |
ImmutableMapIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> ImmutableMap<V1,V> |
ImmutableMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> UnsortedMapIterable<V1,V> |
UnsortedMapIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> OrderedMap<V1,V> |
OrderedMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> MutableOrderedMap<V1,V> |
MutableOrderedMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> MutableMap<V1,V> |
MutableMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
<V1> ImmutableOrderedMap<V1,V> |
ImmutableOrderedMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
<A> A |
MapIterable.ifPresentApply(K key,
Function<? super V,? extends A> function)
If there is a value in the Map that corresponds to the specified key return the result of applying the specified
Function on the value, otherwise return null.
|
<V1> MutableObjectDoubleMap<V1> |
MutableMapIterable.sumByDouble(Function<? super V,? extends V1> groupBy,
DoubleFunction<? super V> function) |
<V1> MutableObjectDoubleMap<V1> |
MutableMapIterable.sumByFloat(Function<? super V,? extends V1> groupBy,
FloatFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
MutableMapIterable.sumByInt(Function<? super V,? extends V1> groupBy,
IntFunction<? super V> function) |
<V1> MutableObjectLongMap<V1> |
MutableMapIterable.sumByLong(Function<? super V,? extends V1> groupBy,
LongFunction<? super V> function) |
V |
MutableMapIterable.updateValue(K key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Looks up the value associated with
key, applies the function to it, and replaces the value. |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<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) |
<K,VV> MutableMap<K,VV> |
MutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<K,VV> ImmutableMap<K,VV> |
ImmutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<VV> Bag<VV> |
PrimitiveObjectMap.collect(Function<? super V,? extends VV> function) |
<VV> MutableBag<VV> |
MutablePrimitiveObjectMap.collect(Function<? super V,? extends VV> function) |
<VV> ImmutableBag<VV> |
ImmutablePrimitiveObjectMap.collect(Function<? super V,? extends VV> function) |
<VV> Bag<VV> |
PrimitiveObjectMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function) |
<VV> MutableBag<VV> |
MutablePrimitiveObjectMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function) |
<VV> ImmutableBag<VV> |
ImmutablePrimitiveObjectMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends VV> function) |
<VV> Bag<VV> |
PrimitiveObjectMap.flatCollect(Function<? super V,? extends Iterable<VV>> function) |
<VV> MutableBag<VV> |
MutablePrimitiveObjectMap.flatCollect(Function<? super V,? extends Iterable<VV>> function) |
<VV> ImmutableBag<VV> |
ImmutablePrimitiveObjectMap.flatCollect(Function<? super V,? extends Iterable<VV>> function) |
<P> V |
MutableByteObjectMap.getIfAbsentPutWith(byte key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableCharObjectMap.getIfAbsentPutWith(char key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableDoubleObjectMap.getIfAbsentPutWith(double key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableFloatObjectMap.getIfAbsentPutWith(float key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableIntObjectMap.getIfAbsentPutWith(int key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableLongObjectMap.getIfAbsentPutWith(long key,
Function<? super P,? extends V> function,
P parameter) |
<P> V |
MutableShortObjectMap.getIfAbsentPutWith(short key,
Function<? super P,? extends V> function,
P parameter) |
<VV> BagMultimap<VV,V> |
PrimitiveObjectMap.groupBy(Function<? super V,? extends VV> function) |
<VV> MutableBagMultimap<VV,V> |
MutablePrimitiveObjectMap.groupBy(Function<? super V,? extends VV> function) |
<VV> ImmutableBagMultimap<VV,V> |
ImmutablePrimitiveObjectMap.groupBy(Function<? super V,? extends VV> function) |
<VV> BagMultimap<VV,V> |
PrimitiveObjectMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> MutableBagMultimap<VV,V> |
MutablePrimitiveObjectMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> ImmutableBagMultimap<VV,V> |
ImmutablePrimitiveObjectMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> UnsortedMapIterable<VV,V> |
PrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> MutableMap<VV,V> |
MutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> ImmutableMap<VV,V> |
ImmutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> MutableObjectDoubleMap<VV> |
MutablePrimitiveObjectMap.sumByDouble(Function<? super V,? extends VV> groupBy,
DoubleFunction<? super V> function) |
<VV> ImmutableObjectDoubleMap<VV> |
ImmutablePrimitiveObjectMap.sumByDouble(Function<? super V,? extends VV> groupBy,
DoubleFunction<? super V> function) |
<VV> MutableObjectDoubleMap<VV> |
MutablePrimitiveObjectMap.sumByFloat(Function<? super V,? extends VV> groupBy,
FloatFunction<? super V> function) |
<VV> ImmutableObjectDoubleMap<VV> |
ImmutablePrimitiveObjectMap.sumByFloat(Function<? super V,? extends VV> groupBy,
FloatFunction<? super V> function) |
<VV> MutableObjectLongMap<VV> |
MutablePrimitiveObjectMap.sumByInt(Function<? super V,? extends VV> groupBy,
IntFunction<? super V> function) |
<VV> ImmutableObjectLongMap<VV> |
ImmutablePrimitiveObjectMap.sumByInt(Function<? super V,? extends VV> groupBy,
IntFunction<? super V> function) |
<VV> MutableObjectLongMap<VV> |
MutablePrimitiveObjectMap.sumByLong(Function<? super V,? extends VV> groupBy,
LongFunction<? super V> function) |
<VV> ImmutableObjectLongMap<VV> |
ImmutablePrimitiveObjectMap.sumByLong(Function<? super V,? extends VV> groupBy,
LongFunction<? super V> function) |
V |
MutableByteObjectMap.updateValue(byte key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableCharObjectMap.updateValue(char key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableDoubleObjectMap.updateValue(double key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableFloatObjectMap.updateValue(float key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableIntObjectMap.updateValue(int key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableLongObjectMap.updateValue(long key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableShortObjectMap.updateValue(short key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
<R> ImmutableList<R> |
ImmutableSortedMap.collect(Function<? super V,? extends R> function) |
<R> MutableList<R> |
MutableSortedMap.collect(Function<? super V,? extends R> function) |
<V1> ListIterable<V1> |
SortedMapIterable.collect(Function<? super V,? extends V1> function) |
<R> ImmutableList<R> |
ImmutableSortedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<R> MutableList<R> |
MutableSortedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<V1> ListIterable<V1> |
SortedMapIterable.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends V1> function) |
<E> MutableSortedMap<K,V> |
MutableSortedMap.collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
iterable to this. |
<E> MutableSortedMap<K,V> |
MutableSortedMap.collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
iterable to this. |
<R> ImmutableList<R> |
ImmutableSortedMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
<R> MutableList<R> |
MutableSortedMap.flatCollect(Function<? super V,? extends Iterable<R>> function) |
<V1> ListIterable<V1> |
SortedMapIterable.flatCollect(Function<? super V,? extends Iterable<V1>> function) |
<P> V |
MutableSortedMap.getIfAbsentPutWith(K key,
Function<? super P,? extends V> function,
P parameter)
Return the value in the Map that corresponds to the specified key, or if there is no value
at the key, return the result of evaluating the specified one argument Function
using the specified parameter, and put that value in the map at the specified key.
|
<VV> ImmutableListMultimap<VV,V> |
ImmutableSortedMap.groupBy(Function<? super V,? extends VV> function) |
<VV> ListMultimap<VV,V> |
SortedMapIterable.groupBy(Function<? super V,? extends VV> function) |
<VV> MutableListMultimap<VV,V> |
MutableSortedMap.groupBy(Function<? super V,? extends VV> function) |
<VV> ImmutableListMultimap<VV,V> |
ImmutableSortedMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> ListMultimap<VV,V> |
SortedMapIterable.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> MutableListMultimap<VV,V> |
MutableSortedMap.groupByEach(Function<? super V,? extends Iterable<VV>> function) |
<VV> ImmutableMap<VV,V> |
ImmutableSortedMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
<VV> MutableMap<VV,V> |
MutableSortedMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> Multimap<K,V2> |
Multimap.collectValues(Function<? super V,? extends V2> function)
Returns a new multimap with the results of applying the specified function on each value of the source
multimap.
|
<V2> MutableMultimap<K,V2> |
MutableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableMultimap<K,V2> |
ImmutableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2,R extends MutableMultimap<K,V2>> |
Multimap.collectValues(Function<? super V,? extends V2> function,
R target)
Same as the collect method but uses the specified target multimap for the results.
|
| Modifier and Type | Method and Description |
|---|---|
<V2> UnsortedBagMultimap<K,V2> |
UnsortedBagMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableBagMultimap<K,V2> |
MutableBagMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableMultimap<K,V2> |
MutableBagIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableBagMultimap<K,V2> |
ImmutableBagMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableMultimap<K,V2> |
ImmutableBagIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> MutableListMultimap<K,V2> |
MutableListMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ListMultimap<K,V2> |
ListMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableListMultimap<K,V2> |
ImmutableListMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> ListMultimap<K,V2> |
SortedIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ReversibleIterableMultimap<K,V2> |
ReversibleIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> OrderedIterableMultimap<K,V2> |
OrderedIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> UnsortedBagMultimap<K,V2> |
UnsortedSetMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableBagMultimap<K,V2> |
MutableSetMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableMultimap<K,V2> |
MutableSetIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableBagMultimap<K,V2> |
ImmutableSetMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableMultimap<K,V2> |
ImmutableSetIterableMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> ListMultimap<K,V2> |
SortedBagMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableListMultimap<K,V2> |
MutableSortedBagMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableListMultimap<K,V2> |
ImmutableSortedBagMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V2> ListMultimap<K,V2> |
SortedSetMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> MutableListMultimap<K,V2> |
MutableSortedSetMultimap.collectValues(Function<? super V,? extends V2> function) |
<V2> ImmutableListMultimap<K,V2> |
ImmutableSortedSetMultimap.collectValues(Function<? super V,? extends V2> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> ReversibleIterable<V> |
ReversibleIterable.collect(Function<? super T,? extends V> function) |
<V> OrderedIterable<V> |
OrderedIterable.collect(Function<? super T,? extends V> function) |
<V> ReversibleIterable<V> |
ReversibleIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> OrderedIterable<V> |
OrderedIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ReversibleIterable<V> |
ReversibleIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> OrderedIterable<V> |
OrderedIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ReversibleIterableMultimap<V,T> |
ReversibleIterable.groupBy(Function<? super T,? extends V> function) |
<V> OrderedIterableMultimap<V,T> |
OrderedIterable.groupBy(Function<? super T,? extends V> function) |
<V> SortedIterableMultimap<V,T> |
SortedIterable.groupBy(Function<? super T,? extends V> function) |
<V> ReversibleIterableMultimap<V,T> |
ReversibleIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> OrderedIterableMultimap<V,T> |
OrderedIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SortedIterableMultimap<V,T> |
SortedIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableSet<V> |
ImmutableSet.collect(Function<? super T,? extends V> function) |
<V> UnsortedSetIterable<V> |
UnsortedSetIterable.collect(Function<? super T,? extends V> function) |
<V> MutableSet<V> |
MutableSet.collect(Function<? super T,? extends V> function) |
<V> ImmutableSet<V> |
ImmutableSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> UnsortedSetIterable<V> |
UnsortedSetIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> MutableSet<V> |
MutableSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableSet<V> |
ImmutableSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedSetIterable<V> |
UnsortedSetIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> MutableSet<V> |
MutableSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableSetMultimap<V,T> |
ImmutableSet.groupBy(Function<? super T,? extends V> function) |
<V> UnsortedSetMultimap<V,T> |
UnsortedSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> UnsortedSetMultimap<V,T> |
ParallelUnsortedSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> SetMultimap<V,T> |
ParallelSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> MutableSetIterableMultimap<V,T> |
MutableSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> MutableSetMultimap<V,T> |
MutableSet.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableSetIterableMultimap<V,T> |
ImmutableSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableSetMultimap<V,T> |
ImmutableSet.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedSetMultimap<V,T> |
UnsortedSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> UnsortedSetMultimap<V,T> |
ParallelUnsortedSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SetMultimap<V,T> |
ParallelSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableSetIterableMultimap<V,T> |
MutableSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableSetMultimap<V,T> |
MutableSet.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableSetIterableMultimap<V,T> |
ImmutableSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableList<V> |
ImmutableSortedSet.collect(Function<? super T,? extends V> function) |
<V> ListIterable<V> |
SortedSetIterable.collect(Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelSortedSetIterable.collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> MutableList<V> |
MutableSortedSet.collect(Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableSortedSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ListIterable<V> |
SortedSetIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ParallelListIterable<V> |
ParallelSortedSetIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function)
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
<V> MutableList<V> |
MutableSortedSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableList<V> |
ImmutableSortedSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ListIterable<V> |
SortedSetIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ParallelListIterable<V> |
ParallelSortedSetIterable.flatCollect(Function<? super T,? extends Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.
|
<V> MutableList<V> |
MutableSortedSet.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableSortedSetMultimap<V,T> |
ImmutableSortedSet.groupBy(Function<? super T,? extends V> function) |
<V> SortedSetMultimap<V,T> |
SortedSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> SortedSetMultimap<V,T> |
ParallelSortedSetIterable.groupBy(Function<? super T,? extends V> function) |
<V> MutableSortedSetMultimap<V,T> |
MutableSortedSet.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableSortedSetMultimap<V,T> |
ImmutableSortedSet.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SortedSetMultimap<V,T> |
SortedSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> SortedSetMultimap<V,T> |
ParallelSortedSetIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableSortedSetMultimap<V,T> |
MutableSortedSet.groupByEach(Function<? super T,? extends Iterable<V>> function) |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<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) |
<K,V> MutableMap<K,V> |
MutableStack.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<K,V> ImmutableMap<K,V> |
ImmutableStack.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MutableStack<V> |
MutableStack.collect(Function<? super T,? extends V> function) |
<V> ImmutableStack<V> |
ImmutableStack.collect(Function<? super T,? extends V> function) |
<V> StackIterable<V> |
StackIterable.collect(Function<? super T,? extends V> function) |
<V> MutableStack<V> |
MutableStack.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> ImmutableStack<V> |
ImmutableStack.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<V> StackIterable<V> |
StackIterable.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
default <V> MutableBag<V> |
MutableStack.countBy(Function<? super T,? extends V> function) |
default <V> ImmutableBag<V> |
ImmutableStack.countBy(Function<? super T,? extends V> function) |
<V> MutableStack<V> |
MutableStack.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableStack<V> |
ImmutableStack.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> StackIterable<V> |
StackIterable.flatCollect(Function<? super T,? extends Iterable<V>> function) |
<V> MutableListMultimap<V,T> |
MutableStack.groupBy(Function<? super T,? extends V> function) |
<V> ImmutableListMultimap<V,T> |
ImmutableStack.groupBy(Function<? super T,? extends V> function) |
<V> ListMultimap<V,T> |
StackIterable.groupBy(Function<? super T,? extends V> function) |
<V> MutableListMultimap<V,T> |
MutableStack.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ImmutableListMultimap<V,T> |
ImmutableStack.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> ListMultimap<V,T> |
StackIterable.groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MutableMap<V,T> |
MutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> ImmutableMap<V,T> |
ImmutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |
<V> MutableObjectDoubleMap<V> |
MutableStack.sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> ImmutableObjectDoubleMap<V> |
ImmutableStack.sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
MutableStack.sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> ImmutableObjectDoubleMap<V> |
ImmutableStack.sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
MutableStack.sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
ImmutableStack.sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
MutableStack.sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
ImmutableStack.sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
Copyright © 2004–2017. All rights reserved.