Uses of Interface
org.eclipse.collections.api.block.function.Function2
Package
Description
This package contains interfaces for Eclipse Collections API.
This package contains interfaces for Bag API.
This package contains interfaces for SortedBag API.
This package contains interfaces for BiMap API.
This package contains interfaces for list API which enhance the performance and functionality of
List
.This package contains interfaces for map API which enhance the performance and functionality of
Map
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
This package contains mutable and immutable sorted map interfaces.
This package contains interfaces for
Multimap
.This package contains interfaces for
BagMultimap
.This package contains interfaces for
ListMultimap
.This package contains interfaces for
SetMultimap
.This package contains interfaces for
SortedBagMultimap
.This package contains interfaces for
SortedSetMultimap
.This package contains interfaces for set API which enhance the performance and functionality of
Set
.This package contains interfaces for sorted set API.
This package contains interfaces for stack API.
This package contains implementations for Eclipse Collections API.
This package contains implementations of the
ImmutableBag
interface.This package contains implementations of the
MutableBag
interface.This package contains implementations of
MutableSortedBag
.This package contains implementations of the
MutableBiMap
interface.This package contains factory implementations for
Function
, Predicate
, SerializableComparator
and Procedure
.This package contains implementations of
Procedure
and Procedure2
.This package contains implementations of the
ImmutableCollection
interface.This package contains implementations of the
MutableCollection
interface.This package contains static utilities for creating mutable and immutable collection factories.
This package contains implementations which has several parallel algorithms that work with Collections and make use of Java's fork-join
framework.
This package contains implementations of the
LazyIterable
interface.This package contains implementations of the
ListIterable
interface.This package contains implementations of the
FixedSizeList
interface.This package contains implementations of the
MutableList
interface.This package contains implementations of the
MapIterable
interface.This package contains implementations of the
ImmutableMap
interface.This package contains implementations of the
MutableMap
interface.This package contains implementations of the mutable primitive-primitive, primitive-object and object-primitive map interfaces.
This package contains implementations of the
MutableSortedMap
interface.This package contains implementations of the
MutableSortedMap
interface.This package contains immutable map implementations backed by hashtables that rely on
HashingStrategy
s provided by
the developer to compute the hashCode and equals for the objects stored in the map.This package contains mutable map implementations backed by hashtables that rely on
HashingStrategy
s provided by
the developer to compute the hashCode and equals for the objects stored in the map.This package contains implementations of the
Multimap
interface.This package contains implementations of the
BagMultimap
interface.This package contains implementations of the
ListMultimap
interface.This package contains implementations of the
SetMultimap
interface.This package contains implementations of the
SortedSetMultimap
interface.This package contains classes which is used for parallel iteration through the containers.
This package contains the implementations of
ImmutableSet
.This package contains implementations of
MutableSet
.This package contains implementations of
MutableSortedSet
.This package contains implementations of the
MutableStack
interface.This package contains static utilities that provide iteration pattern implementations which work with JCF collections.
This package contains static utilities that provide internal iteration pattern implementations which work with JCF collections.
-
Uses of Function2 in org.eclipse.collections.api
Modifier and TypeMethodDescription<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> 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.default <K,
V, R extends MutableMapIterable<K, V>>
RRichIterable.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> LazyIterable<V> LazyIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> ParallelIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> RichIterable<V> RichIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) Same asRichIterable.collect(Function)
with aFunction2
and specified parameter which is passed to the block.<P,
V, R extends Collection<V>>
RRichIterable.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>>
RRichIterable.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> LazyIterable<V> LazyIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) default <P,
V> RichIterable<V> RichIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) default <P,
V, R extends Collection<V>>
RRichIterable.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. -
Uses of Function2 in org.eclipse.collections.api.bag
Modifier and TypeMethodDescriptiondefault <K,
V, R extends MutableMapIterable<K, V>>
RBag.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> ImmutableBag<V> ImmutableBag.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> ParallelUnsortedBag<V> ParallelUnsortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> UnsortedBag<V> UnsortedBag.collectWith
(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 <V,
P> MutableBag<V> MutableBag.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableBag<V> ImmutableBag.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> UnsortedBag<V> UnsortedBag.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.bag.sorted
Modifier and TypeMethodDescription<P,
V> ImmutableList<V> ImmutableSortedBag.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> ParallelListIterable<V> ParallelSortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ListIterable<V> SortedBag.collectWith
(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 <V,
P> MutableBag<V> MutableSortedBag.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableList<V> ImmutableSortedBag.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> ListIterable<V> SortedBag.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.bimap
Modifier and TypeMethodDescriptiondefault <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> ImmutableMap<KK, VV> ImmutableBiMap.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) 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 <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) <K2,
V2> BiMap<K2, V2> For each key and value of the map the function is evaluated.<K2,
V2> ImmutableBiMap<K2, V2> <K2,
V2> MutableBiMap<K2, V2> BiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) For each key and value of the map the function is evaluated.<R> ImmutableBiMap<K,
R> ImmutableBiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableBiMap<K,
R> MutableBiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <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) -
Uses of Function2 in org.eclipse.collections.api.collection
Modifier and TypeMethodDescriptiondefault <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) 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) <P,
V> ImmutableCollection<V> ImmutableCollection.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableCollection<V> MutableCollection.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) Same asRichIterable.collect(Function)
with aFunction2
and specified parameter which is passed to the block.default <V,
P> ImmutableBag<V> ImmutableCollection.countByWith
(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 <P,
V> ImmutableCollection<V> ImmutableCollection.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) default <P,
V> MutableCollection<V> MutableCollection.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.list
Modifier and TypeMethodDescription<P,
V> ImmutableList<V> ImmutableList.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) default <P,
V> MutableList<V> MutableList.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> ParallelListIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableList<V> ImmutableList.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> MutableList<V> MutableList.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.map
Modifier and TypeMethodDescriptiondefault <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> ImmutableMap<KK, VV> ImmutableMap.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> 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 <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 <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) <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 <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> 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 <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) 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 <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) <K2,
V2> ImmutableMap<K2, V2> <K2,
V2> ImmutableMapIterable<K2, V2> <K2,
V2> ImmutableOrderedMap<K2, V2> <K2,
V2> MapIterable<K2, V2> For each key and value of the map the function is evaluated.<K2,
V2> MutableMap<K2, V2> <K2,
V2> MutableMapIterable<K2, V2> <K2,
V2> MutableOrderedMap<K2, V2> <K2,
V2> OrderedMap<K2, V2> <K2,
V2> UnsortedMapIterable<K2, V2> <R> ImmutableMap<K,
R> ImmutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> ImmutableMapIterable<K,
R> ImmutableMapIterable.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> ImmutableOrderedMap<K,
R> ImmutableOrderedMap.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> MutableMap<K,
R> MutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableMapIterable<K,
R> MutableMapIterable.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableOrderedMap<K,
R> MutableOrderedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> OrderedMap<K,
R> OrderedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> UnsortedMapIterable<K,
R> UnsortedMapIterable.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> ImmutableBag<VV> ImmutableMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
V1> ImmutableList<V1> ImmutableOrderedMap.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> MutableList<V1> MutableOrderedMap.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> Bag<V1> UnsortedMapIterable.collectWith
(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 <V1,
P> MutableBag<V1> MutableMapIterable.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) default <P,
R> ImmutableBag<R> ImmutableMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<R>> function, P parameter) default <P,
V1> ImmutableList<V1> ImmutableOrderedMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<V1>> function, P parameter) default <P,
R> MutableBag<R> MutableMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<R>> function, P parameter) default <P,
V1> MutableList<V1> MutableOrderedMap.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> Bag<V1> UnsortedMapIterable.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 asMutableMapIterable.updateValue(Object, Function0, Function)
with a Function2 and specified parameter which is passed to the function. -
Uses of Function2 in org.eclipse.collections.api.map.primitive
Modifier and TypeMethodDescriptiondefault <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) 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) <P,
VV> ImmutableBag<VV> ImmutablePrimitiveObjectMap.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> Bag<VV> PrimitiveObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) default <P,
VV> ImmutableBag<VV> ImmutablePrimitiveObjectMap.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> Bag<VV> PrimitiveObjectMap.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. -
Uses of Function2 in org.eclipse.collections.api.map.sorted
Modifier and TypeMethodDescriptiondefault <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> ImmutableMap<K2, V2> <K2,
V2> MutableMap<K2, V2> <K2,
V2> UnsortedMapIterable<K2, V2> <R> ImmutableSortedMap<K,
R> ImmutableSortedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableSortedMap<K,
R> MutableSortedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> SortedMapIterable<K,
R> SortedMapIterable.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> ImmutableList<VV> ImmutableSortedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV> MutableList<VV> MutableSortedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
V1> ListIterable<V1> SortedMapIterable.collectWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) default <P,
R> ImmutableList<R> ImmutableSortedMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<R>> function, P parameter) default <P,
R> MutableList<R> MutableSortedMap.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) -
Uses of Function2 in org.eclipse.collections.api.multimap
Modifier and TypeMethodDescription<K2,
V2> ImmutableMultimap<K2, V2> ImmutableMultimap.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, R extends MutableMultimap<K2, V2>>
RMultimap.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.<K2,
V2> MutableMultimap<K2, V2> MutableMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.bag
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagIterableMultimap<K2, V2> ImmutableBagIterableMultimap.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> MutableBagIterableMultimap<K2, V2> MutableBagIterableMultimap.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> UnsortedBagMultimap<K2, V2> UnsortedBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.list
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableListMultimap.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> MutableBagMultimap<K2, V2> MutableListMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.ordered
Modifier and TypeMethodDescription<K2,
V2> BagMultimap<K2, V2> OrderedIterableMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.set
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagIterableMultimap<K2, V2> ImmutableSetIterableMultimap.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> MutableBagIterableMultimap<K2, V2> MutableSetIterableMultimap.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> UnsortedBagMultimap<K2, V2> UnsortedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.sortedbag
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableSortedBagMultimap.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> BagMultimap<K2, V2> SortedBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.multimap.sortedset
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableSortedSetMultimap.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> BagMultimap<K2, V2> SortedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.api.ordered
Modifier and TypeMethodDescription<P,
V> OrderedIterable<V> OrderedIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ReversibleIterable<V> ReversibleIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> OrderedIterable<V> OrderedIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) default <P,
V> ReversibleIterable<V> ReversibleIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.set
Modifier and TypeMethodDescription<P,
V> ImmutableSet<V> ImmutableSet.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> UnsortedSetIterable<V> UnsortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableSet<V> ImmutableSet.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> UnsortedSetIterable<V> UnsortedSetIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.set.sorted
Modifier and TypeMethodDescription<P,
V> ImmutableList<V> ImmutableSortedSet.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> ParallelListIterable<V> ParallelSortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ListIterable<V> SortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableList<V> ImmutableSortedSet.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> ListIterable<V> SortedSetIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.api.stack
Modifier and TypeMethodDescriptiondefault <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) 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) <P,
V> ImmutableStack<V> ImmutableStack.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> StackIterable<V> StackIterable.collectWith
(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 <V,
P> MutableBag<V> MutableStack.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) default <P,
V> ImmutableStack<V> ImmutableStack.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> StackIterable<V> StackIterable.flatCollectWith
(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl
Modifier and TypeMethodDescription<K,
V> MapIterable<K, V> UnmodifiableRichIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <P,
V, R extends Collection<V>>
RAbstractRichIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R target) <P,
V> RichIterable<V> UnmodifiableRichIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RUnmodifiableRichIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) <IV> IV
AbstractRichIterable.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
UnmodifiableRichIterable.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.bag
Modifier and TypeMethodDescription<P,
V, R extends Collection<V>>
RAbstractBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R target) <IV> IV
AbstractBag.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.bag.immutable
Modifier and TypeMethodDescription<P,
V> ImmutableBag<V> AbstractImmutableBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P> ImmutableBag<V> AbstractImmutableBag.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P> ImmutableBag<V> AbstractImmutableBagIterable.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <IV> IV
ImmutableHashBag.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.bag.mutable
Modifier and TypeMethodDescription<P,
V> MutableBag<V> AbstractMutableBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableBag<V> MultiReaderHashBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableBag<V> SynchronizedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableBag<A> UnmodifiableBag.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <V,
P> MutableBag<V> AbstractMutableBag.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P> MutableBag<V> AbstractMutableBagIterable.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.bag.sorted.mutable
Modifier and TypeMethodDescription<P,
V> MutableList<V> AbstractMutableSortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableList<V> SynchronizedSortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableList<A> UnmodifiableSortedBag.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <V,
P> MutableBag<V> AbstractMutableSortedBag.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.bimap
Modifier and TypeMethodDescription<P,
VV, R extends Collection<VV>>
RAbstractBiMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <IV> IV
AbstractBiMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.bimap.immutable
Modifier and TypeMethodDescription<K1,
V1, V2> ImmutableMap<K1, V2> AbstractImmutableBiMap.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) <K2,
V2> ImmutableMap<K2, V2> AbstractImmutableBiMap.aggregateBy
(Function<? super V, ? extends K2> groupBy, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V, ? extends V2> nonMutatingAggregator) <K2,
V2> ImmutableBiMap<K2, V2> <R> ImmutableBiMap<K,
R> AbstractImmutableBiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> ImmutableBag<VV> AbstractImmutableBiMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.bimap.mutable
Modifier and TypeMethodDescription<K1,
V1, V2> MutableMap<K1, V2> SynchronizedBiMap.aggregateBy
(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator) <KK,
VV> MutableMap<KK, VV> SynchronizedBiMap.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K2,
V2> MutableBiMap<K2, V2> <K2,
V2> MutableBiMap<K2, V2> <R> MutableBiMap<K,
R> SynchronizedBiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableBiMap<K,
R> UnmodifiableBiMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
V1> RichIterable<V1> UnmodifiableBiMap.collectWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableBiMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <IV> IV
UnmodifiableBiMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <P> V
UnmodifiableBiMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.block.factory
Modifier and TypeMethodDescriptionstatic <T,
V, P> Function2<T, P, V> Functions2.fromFunction
(Function<? super T, ? extends V> function) Functions2.integerAddition()
static <T> Function2<T,
T, T> Functions2.max
(Comparator<? super T> comparator) static <T,
V extends Comparable<? super V>>
Function2<T,T, T> static <T> Function2<T,
T, T> Functions2.min
(Comparator<? super T> comparator) static <T,
V extends Comparable<? super V>>
Function2<T,T, T> static <T,
V> Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> PrimitiveFunctions.sumByDoubleFunction
(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) static <T,
V> Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> PrimitiveFunctions.sumByFloatFunction
(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) static <T,
V> Function2<MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> PrimitiveFunctions.sumByIntFunction
(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) static <T,
V> Function2<MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> PrimitiveFunctions.sumByLongFunction
(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) static <T,
V, P> Function2<T, P, V> Functions2.throwing
(ThrowingFunction2<T, P, V> throwingFunction2) Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a RuntimeException, wrapping the checked exception that is the cause.static <T1,
T2, V> Function2<T1, T2, V> Functions2.throwing
(ThrowingFunction2<T1, T2, V> throwingFunction2, Function3<T1, T2, ? super Throwable, ? extends RuntimeException> rethrow) Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function2 that will throw a user specified RuntimeException based on the provided function.Modifier and TypeMethodDescriptionstatic <T,
P, R> Function<T, R> Bind the parameter passed to a Function2 into a new Function.static <T,
V> Function<T, V> Functions.throwing
(ThrowingFunction<T, V> throwingFunction, Function2<T, ? super Throwable, ? extends RuntimeException> rethrow) Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Function that will throw a user specified RuntimeException based on the provided function.static <T> Predicate<T>
Predicates.throwing
(ThrowingPredicate<T> throwingPredicate, Function2<T, ? super Throwable, ? extends RuntimeException> rethrow) Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Predicate that will throw a user specified RuntimeException based on the provided function.static <T> Procedure<T>
Procedures.throwing
(ThrowingProcedure<T> throwingProcedure, Function2<T, ? super Throwable, ? extends RuntimeException> rethrow) Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a Procedure that will throw a user specified RuntimeException based on the provided function. -
Uses of Function2 in org.eclipse.collections.impl.block.function
Modifier and TypeFieldDescriptionstatic final Function2<Collection<?>,
?, Collection<?>> AddFunction.COLLECTION
static final Function2<Integer,
Collection<?>, Integer> MaxSizeFunction.COLLECTION
static final Function2<Integer,
Collection<?>, Integer> MinSizeFunction.COLLECTION
AddFunction.DOUBLE
MaxFunction.DOUBLE
MinFunction.DOUBLE
MultiplyFunction.DOUBLE
SubtractFunction.DOUBLE
AddFunction.FLOAT
AddFunction.INTEGER
MaxFunction.INTEGER
MinFunction.INTEGER
MultiplyFunction.INTEGER
SubtractFunction.INTEGER
AddFunction.LONG
MaxFunction.LONG
MinFunction.LONG
MultiplyFunction.LONG
SubtractFunction.LONG
MaxSizeFunction.MAP
MinSizeFunction.MAP
AddFunction.STRING
MaxSizeFunction.STRING
MinSizeFunction.STRING
-
Uses of Function2 in org.eclipse.collections.impl.block.function.checked
-
Uses of Function2 in org.eclipse.collections.impl.block.procedure
-
Uses of Function2 in org.eclipse.collections.impl.collection
Modifier and TypeMethodDescription<K,
V> MapIterable<K, V> AbstractSynchronizedRichIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <P,
A, R extends Collection<A>>
RAbstractSynchronizedRichIterable.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) <P,
V> RichIterable<V> AbstractSynchronizedRichIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P> Bag<V> AbstractSynchronizedRichIterable.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P, R extends MutableBagIterable<V>>
RAbstractSynchronizedRichIterable.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R target) <IV> IV
AbstractSynchronizedRichIterable.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.collection.immutable
Modifier and TypeMethodDescription<V,
P> ImmutableBag<V> AbstractImmutableCollection.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.collection.mutable
Modifier and TypeMethodDescription<K,
V> MutableMap<K, V> AbstractSynchronizedMutableCollection.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <P,
A, R extends Collection<A>>
RAbstractCollectionAdapter.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) <P,
V> MutableCollection<V> AbstractCollectionAdapter.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RAbstractMultiReaderMutableCollection.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) <P,
V> MutableCollection<V> AbstractSynchronizedMutableCollection.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableCollection<A> AbstractUnmodifiableMutableCollection.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <P,
A, R extends Collection<A>>
RAbstractUnmodifiableMutableCollection.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) <V,
P> MutableBag<V> AbstractMutableCollection.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <V,
P> MutableBag<V> AbstractSynchronizedMutableCollection.countByWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <IV> IV
AbstractCollectionAdapter.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
AbstractMultiReaderMutableCollection.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
AbstractUnmodifiableMutableCollection.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.collector
Modifier and TypeMethodDescriptionstatic <T,
K, R extends MutableMapIterable<K, T>>
Collector<T,?, R> Collectors2.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends T> zeroValueFactory, Function2<? super T, ? super T, ? extends T> aggregator, Supplier<R> supplier) Groups the elements using thegroupBy
function and all the elements that map to the same key are aggregated together using theaggregator
function.static <T,
P, V, R extends Collection<V>>
Collector<T,?, R> Collectors2.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, Supplier<R> supplier) Returns a new collection with the results of applying the specified function on each element of the source collection with the specified parameter. -
Uses of Function2 in org.eclipse.collections.impl.factory
Modifier and TypeMethodDescriptionstatic <A,
B, C> LazyIterable<C> Sets.cartesianProduct
(Set<A> set1, Set<B> set2, Function2<? super A, ? super B, ? extends C> function) -
Uses of Function2 in org.eclipse.collections.impl.forkjoin
Modifier and TypeMethodDescriptionstatic <T,
K, V> MutableMap<K, V> FJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <T,
K, V> MutableMap<K, V> FJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, int batchSize) static <T,
K, V> MutableMap<K, V> FJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, int batchSize, ForkJoinPool executor) static <T,
K, V, R extends MutableMapIterable<K, V>>
RFJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap) static <T,
K, V, R extends MutableMapIterable<K, V>>
RFJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap, int batchSize) static <T,
K, V, R extends MutableMapIterable<K, V>>
RFJIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap, int batchSize, ForkJoinPool executor) -
Uses of Function2 in org.eclipse.collections.impl.lazy
Modifier and TypeMethodDescription<P,
V> LazyIterable<V> AbstractLazyIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <IV> IV
CollectIterable.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> f) -
Uses of Function2 in org.eclipse.collections.impl.lazy.parallel
Modifier and TypeMethodDescription<K,
V> MapIterable<K, V> AbstractMultiReaderParallelIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <K,
V> MapIterable<K, V> AbstractParallelIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <K,
V> MapIterable<K, V> AbstractSynchronizedParallelIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <K,
V> MapIterable<K, V> NonParallelIterable.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <P,
V> ParallelIterable<V> AbstractParallelIterableImpl.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> MultiReaderParallelIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> SynchronizedParallelIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.lazy.parallel.bag
Modifier and TypeMethodDescription<P,
V> ParallelUnsortedBag<V> AbstractParallelUnsortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelUnsortedBag<V> NonParallelUnsortedBag.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.lazy.parallel.list
Modifier and TypeMethodDescription<P,
V> ParallelListIterable<V> AbstractParallelListIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> MultiReaderParallelListIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> NonParallelListIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> SynchronizedParallelListIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.lazy.parallel.set
Modifier and TypeMethodDescription<P,
V> ParallelIterable<V> AbstractParallelUnsortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> MultiReaderParallelUnsortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> NonParallelUnsortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelIterable<V> SynchronizedParallelUnsortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.lazy.parallel.set.sorted
Modifier and TypeMethodDescription<P,
V> ParallelListIterable<V> AbstractParallelSortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> NonParallelSortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> ParallelListIterable<V> SynchronizedParallelSortedSetIterable.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.list
Modifier and TypeMethodDescription<R> R
Interval.injectInto
(R injectValue, Function2<? super R, ? super Integer, ? extends R> function) <R> R
Interval.reverseInjectInto
(R injectValue, Function2<? super R, Integer, ? extends R> function) -
Uses of Function2 in org.eclipse.collections.impl.list.fixed
Modifier and TypeMethodDescription<P,
A> MutableList<A> AbstractArrayAdapter.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <P,
A, R extends Collection<A>>
RAbstractArrayAdapter.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter, R target) <IV> IV
AbstractArrayAdapter.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.list.mutable
Modifier and TypeMethodDescription<P,
V> MutableList<V> AbstractListAdapter.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A, R extends Collection<A>>
RAbstractMutableList.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter, R target) <P,
A> ArrayListAdapter<A> ArrayListAdapter.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <P,
A, R extends Collection<A>>
RCompositeFastList.collectWith
(Function2<? super E, ? super P, ? extends A> function, P parameter, R target) <P,
V> FastList<V> FastList.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RFastList.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R target) <P,
V> MutableList<V> MultiReaderFastList.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableList<V> RandomAccessListAdapter.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableList<V> SynchronizedMutableList.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableList<A> UnmodifiableMutableList.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) <IV> IV
AbstractMutableList.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
ArrayListAdapter.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
CompositeFastList.injectInto
(IV injectedValue, Function2<? super IV, ? super E, ? extends IV> function) <IV> IV
FastList.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
ListAdapter.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
RandomAccessListAdapter.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.map
Modifier and TypeMethodDescription<K1,
V1, V2> MutableMapIterable<K1, V2> AbstractSynchronizedMapIterable.aggregateBy
(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator) <KK,
VV> MutableMapIterable<KK, VV> AbstractSynchronizedMapIterable.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <V1,
P> MutableBag<V1> AbstractSynchronizedMapIterable.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) <P> V
AbstractSynchronizedMapIterable.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.immutable
Modifier and TypeMethodDescription<K1,
V1, V2> ImmutableMap<K1, V2> AbstractImmutableMap.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) <K2,
V2> ImmutableMap<K2, V2> <R> ImmutableMap<K,
R> AbstractImmutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> ImmutableBag<VV> AbstractImmutableMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <V1,
P> ImmutableBag<V1> AbstractImmutableMap.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.mutable
Modifier and TypeMethodDescription<K1,
V1, V2> MutableMap<K1, V2> AbstractMutableMapIterable.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) <K1,
V1, V2> MutableMap<K1, V2> SynchronizedMutableMap.aggregateBy
(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator) <KK,
VV> MutableMap<KK, VV> SynchronizedMutableMap.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K2,
V2> MutableMap<K2, V2> <K2,
V2> MutableMap<K2, V2> <K2,
V2> MutableMap<K2, V2> <R> MutableMap<K,
R> AbstractMutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableMap<K,
R> SynchronizedMutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableMap<K,
R> UnifiedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableMap<K,
R> UnmodifiableMutableMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> MutableBag<VV> AbstractMutableMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
A> MutableBag<A> SynchronizedMutableMap.collectWith
(Function2<? super V, ? super P, ? extends A> function, P parameter) <P,
R, C extends Collection<R>>
CUnmodifiableMutableMap.collectWith
(Function2<? super V, ? super P, ? extends R> function, P parameter, C targetCollection) <P,
VV> MutableBag<VV> UnmodifiableMutableMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <V1,
P> MutableBag<V1> AbstractMutableMapIterable.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) <IV> IV
UnmodifiableMutableMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <P1,
P2> V ConcurrentHashMap.putIfAbsentGetIfPresent
(K key, Function2<? super K, ? super V, ? extends K> keyTransformer, Function3<P1, P2, ? super K, ? extends V> factory, P1 param1, P2 param2) It puts an object into the map based on the key.<P1,
P2> V ConcurrentHashMapUnsafe.putIfAbsentGetIfPresent
(K key, Function2<? super K, ? super V, ? extends K> keyTransformer, Function3<P1, P2, ? super K, ? extends V> factory, P1 param1, P2 param2) It puts an object into the map based on the key.<P> V
AbstractMutableMapIterable.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
ConcurrentHashMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
ConcurrentHashMapUnsafe.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
ConcurrentMutableHashMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) Deprecated.<P> V
UnifiedMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableMutableMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.mutable.primitive
Modifier and TypeMethodDescription<K,
VV> MutableMap<K, VV> SynchronizedByteObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedCharObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedDoubleObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedFloatObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedIntObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedLongObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> SynchronizedShortObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableByteObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableCharObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableDoubleObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableFloatObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableIntObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableLongObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K,
VV> MutableMap<K, VV> UnmodifiableShortObjectMap.aggregateBy
(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <P,
VV> MutableBag<VV> ByteObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RByteObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> CharObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RCharObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> DoubleObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RDoubleObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> FloatObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RFloatObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> IntObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RIntObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> LongObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RLongObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> ShortObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RShortObjectHashMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedByteObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedByteObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedCharObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedCharObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedDoubleObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedDoubleObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedFloatObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedFloatObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedIntObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedIntObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedLongObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedLongObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> SynchronizedShortObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RSynchronizedShortObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableByteObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableByteObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableCharObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableCharObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableDoubleObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableDoubleObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableFloatObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableFloatObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableIntObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableIntObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableLongObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableLongObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <P,
VV> MutableBag<VV> UnmodifiableShortObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableShortObjectMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <IV> IV
ByteObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
CharObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
DoubleObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
FloatObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
IntObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
LongObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
ShortObjectHashMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedByteObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedCharObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedDoubleObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedFloatObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedIntObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedLongObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
SynchronizedShortObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableByteObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableCharObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableDoubleObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableFloatObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableIntObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableLongObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <IV> IV
UnmodifiableShortObjectMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <P> V
ByteObjectHashMap.updateValueWith
(byte key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
CharObjectHashMap.updateValueWith
(char key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
DoubleObjectHashMap.updateValueWith
(double key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
FloatObjectHashMap.updateValueWith
(float key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
IntObjectHashMap.updateValueWith
(int key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
LongObjectHashMap.updateValueWith
(long key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
ShortObjectHashMap.updateValueWith
(short key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedByteObjectMap.updateValueWith
(byte key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedCharObjectMap.updateValueWith
(char key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedDoubleObjectMap.updateValueWith
(double key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedFloatObjectMap.updateValueWith
(float key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedIntObjectMap.updateValueWith
(int key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedLongObjectMap.updateValueWith
(long key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
SynchronizedShortObjectMap.updateValueWith
(short key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableByteObjectMap.updateValueWith
(byte key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableCharObjectMap.updateValueWith
(char key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableDoubleObjectMap.updateValueWith
(double key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableFloatObjectMap.updateValueWith
(float key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableIntObjectMap.updateValueWith
(int key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableLongObjectMap.updateValueWith
(long key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableShortObjectMap.updateValueWith
(short key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.ordered.mutable
Modifier and TypeMethodDescription<K1,
V1, V2> MutableMapIterable<K1, V2> UnmodifiableMutableOrderedMap.aggregateBy
(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator) <KK,
VV> MutableMapIterable<KK, VV> UnmodifiableMutableOrderedMap.aggregateBy
(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator) <K2,
V2> MutableOrderedMap<K2, V2> <K2,
V2> MutableOrderedMap<K2, V2> <R> MutableOrderedMap<K,
R> OrderedMapAdapter.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableOrderedMap<K,
R> UnmodifiableMutableOrderedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> MutableList<VV> OrderedMapAdapter.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV> MutableList<VV> UnmodifiableMutableOrderedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableMutableOrderedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection) <V1,
P> MutableBag<V1> OrderedMapAdapter.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) <VV,
P> MutableBag<VV> UnmodifiableMutableOrderedMap.countByWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <VV,
P, R extends MutableBagIterable<VV>>
RUnmodifiableMutableOrderedMap.countByWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter, R target) <P,
VV> MutableList<VV> UnmodifiableMutableOrderedMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<VV>> function, P parameter) <P,
VV, R extends Collection<VV>>
RUnmodifiableMutableOrderedMap.flatCollectWith
(Function2<? super V, ? super P, ? extends Iterable<VV>> function, P parameter, R target) <IV> IV
UnmodifiableMutableOrderedMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <P> V
OrderedMapAdapter.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) <P> V
UnmodifiableMutableOrderedMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.sorted.immutable
Modifier and TypeMethodDescription<K1,
V1, V2> ImmutableMap<K1, V2> AbstractImmutableSortedMap.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) <K2,
V2> ImmutableMap<K2, V2> <R> ImmutableSortedMap<K,
R> AbstractImmutableSortedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> ImmutableList<VV> AbstractImmutableSortedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <V1,
P> ImmutableBag<V1> AbstractImmutableSortedMap.countByWith
(Function2<? super V, ? super P, ? extends V1> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.sorted.mutable
Modifier and TypeMethodDescription<K2,
V2> MutableMap<K2, V2> <K2,
V2> MutableMap<K2, V2> <R> MutableSortedMap<K,
R> AbstractMutableSortedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableSortedMap<K,
R> SynchronizedSortedMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <R> MutableSortedMap<K,
R> UnmodifiableTreeMap.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P,
VV> MutableList<VV> AbstractMutableSortedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
VV> MutableList<VV> SynchronizedSortedMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <P,
R, C extends Collection<R>>
CUnmodifiableTreeMap.collectWith
(Function2<? super V, ? super P, ? extends R> function, P parameter, C targetCollection) <P,
VV> MutableList<VV> UnmodifiableTreeMap.collectWith
(Function2<? super V, ? super P, ? extends VV> function, P parameter) <IV> IV
UnmodifiableTreeMap.injectInto
(IV injectedValue, Function2<? super IV, ? super V, ? extends IV> function) <P> V
UnmodifiableTreeMap.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.map.strategy.immutable
Modifier and TypeMethodDescription<R> ImmutableMap<K,
R> ImmutableUnifiedMapWithHashingStrategy.collectValues
(Function2<? super K, ? super V, ? extends R> function) -
Uses of Function2 in org.eclipse.collections.impl.map.strategy.mutable
Modifier and TypeMethodDescription<R> MutableMap<K,
R> UnifiedMapWithHashingStrategy.collectValues
(Function2<? super K, ? super V, ? extends R> function) <P> V
UnifiedMapWithHashingStrategy.updateValueWith
(K key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.multimap
Modifier and TypeMethodDescription<K2,
V2, R extends MutableMultimap<K2, V2>>
RAbstractMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function, R target) <K2,
V2, R extends MutableMultimap<K2, V2>>
RAbstractSynchronizedMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function, R target) -
Uses of Function2 in org.eclipse.collections.impl.multimap.bag
Modifier and TypeMethodDescription<K2,
V2> HashBagMultimap<K2, V2> AbstractMutableBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableBagMultimapImpl.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> MutableBagMultimap<K2, V2> SynchronizedBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> SynchronizedPutHashBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> TreeBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) Deprecated. -
Uses of Function2 in org.eclipse.collections.impl.multimap.bag.sorted
Modifier and TypeMethodDescription<K2,
V2> HashBagMultimap<K2, V2> TreeBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) Deprecated. -
Uses of Function2 in org.eclipse.collections.impl.multimap.bag.sorted.immutable
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableSortedBagMultimapImpl.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.impl.multimap.bag.sorted.mutable
Modifier and TypeMethodDescription<K2,
V2> MutableBagMultimap<K2, V2> SynchronizedSortedBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> TreeBagMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.impl.multimap.list
Modifier and TypeMethodDescription<K2,
V2> HashBagMultimap<K2, V2> AbstractMutableListMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableListMultimapImpl.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> MutableBagMultimap<K2, V2> SynchronizedListMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> SynchronizedPutFastListMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.impl.multimap.set
Modifier and TypeMethodDescription<K2,
V2> MutableBagMultimap<K2, V2> AbstractMutableSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableSetMultimapImpl.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> MutableBagMultimap<K2, V2> SynchronizedPutUnifiedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> MutableBagMultimap<K2, V2> SynchronizedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.impl.multimap.set.sorted
Modifier and TypeMethodDescription<K2,
V2> ImmutableBagMultimap<K2, V2> ImmutableSortedSetMultimapImpl.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> SynchronizedPutTreeSortedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> MutableBagMultimap<K2, V2> SynchronizedSortedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) <K2,
V2> HashBagMultimap<K2, V2> TreeSortedSetMultimap.collectKeysValues
(Function2<? super K, ? super V, Pair<K2, V2>> function) -
Uses of Function2 in org.eclipse.collections.impl.parallel
Modifier and TypeMethodDescriptionstatic <T,
K, V> MutableMap<K, V> ParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <T,
K, V> MutableMap<K, V> ParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, int batchSize) static <T,
K, V> MutableMap<K, V> ParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, int batchSize, Executor executor) static <T,
K, V, R extends MutableMapIterable<K, V>>
RParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap) static <T,
K, V, R extends MutableMapIterable<K, V>>
RParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap, int batchSize) static <T,
K, V, R extends MutableMapIterable<K, V>>
RParallelIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator, R mutableMap, int batchSize, Executor executor) -
Uses of Function2 in org.eclipse.collections.impl.set
Modifier and TypeMethodDescription<P,
A> UnifiedSet<A> AbstractUnifiedSet.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.set.immutable
Modifier and TypeMethodDescription<P,
V> ImmutableSet<V> AbstractImmutableSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.set.mutable
Modifier and TypeMethodDescription<P,
V> MutableSet<V> AbstractMutableSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableSet<V> MultiReaderUnifiedSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableSet<V> SetAdapter.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableSet<V> SynchronizedMutableSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableSet<A> UnmodifiableMutableSet.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.set.sorted.mutable
Modifier and TypeMethodDescription<P,
V> MutableList<V> SortedSetAdapter.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableList<V> SynchronizedSortedSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V> MutableList<V> TreeSortedSet.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
A> MutableList<A> UnmodifiableSortedSet.collectWith
(Function2<? super T, ? super P, ? extends A> function, P parameter) -
Uses of Function2 in org.eclipse.collections.impl.stack.mutable
Modifier and TypeMethodDescription<K,
V> MutableMap<K, V> SynchronizedStack.aggregateBy
(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) <P,
V> ArrayStack<V> ArrayStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RArrayStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) <P,
V> MutableStack<V> SynchronizedStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RSynchronizedStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) <P,
V> MutableStack<V> UnmodifiableStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter) <P,
V, R extends Collection<V>>
RUnmodifiableStack.collectWith
(Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) <IV> IV
ArrayStack.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
SynchronizedStack.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) <IV> IV
UnmodifiableStack.injectInto
(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function) -
Uses of Function2 in org.eclipse.collections.impl.utility
Modifier and TypeMethodDescriptionstatic <T,
K, V> MutableMap<K, V> ArrayListIterate.aggregateBy
(ArrayList<T> list, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <T,
K, V> MutableMap<K, V> Iterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <A,
B, C> LazyIterable<C> LazyIterate.cartesianProduct
(Iterable<A> iterable1, Iterable<B> iterable2, Function2<? super A, ? super B, ? extends C> function) Create a deferred cartesian product of the two specified iterables.static <K,
V, K2, V2>
MutableMap<K2,V2> For each value of the map, the function is evaluated with the key and value as the parameter.static <K1,
V1, K2, V2, R extends Map<K2, V2>>
RFor each value of the map, the function is evaluated with the key and value as the parameter.static <K1,
V1, K2, V2>
MutableMap<K2,V2> MapIterate.collectIf
(Map<K1, V1> map, Function2<? super K1, ? super V1, Pair<K2, V2>> function, Predicate2<? super K1, ? super V1> predicate) For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, and if true, thenfunction
is applied.static <K1,
V1, K2, V2>
MutableMap<K2,V2> MapIterate.collectIf
(Map<K1, V1> map, Function2<? super K1, ? super V1, Pair<K2, V2>> function, Predicate2<? super K1, ? super V1> predicate, Map<K2, V2> target) For each value of the map, the Predicate2 is evaluated with the key and value as the parameter, and if true, thenfunction
is applied.static <K,
V, V2> MutableMap<K, V2> MapIterate.collectValues
(Map<K, V> map, Function2<? super K, ? super V, ? extends V2> function) For each key and value of the map, the function is evaluated with the key and value as the parameter.static <K,
V, V2, R extends Map<K, V2>>
RMapIterate.collectValues
(Map<K, V> map, Function2<? super K, ? super V, ? extends V2> function, R target) For each key and value of the map, the function is evaluated with the key and value as the parameter.static <T,
P, V> MutableList<V> ArrayIterate.collectWith
(T[] objectArray, Function2<? super T, ? super P, ? extends V> function, P parameter) static <T,
P, V, R extends Collection<V>>
RArrayIterate.collectWith
(T[] objectArray, Function2<? super T, ? super P, ? extends V> function, P parameter, R targetCollection) static <T,
P, A> ArrayList<A> ArrayListIterate.collectWith
(ArrayList<T> list, Function2<? super T, ? super P, ? extends A> function, P parameter) static <T,
P, A, R extends Collection<A>>
RArrayListIterate.collectWith
(ArrayList<T> list, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) static <T,
P, A> Collection<A> Iterate.collectWith
(Iterable<T> iterable, Function2<? super T, ? super P, ? extends A> function, P parameter) Same as collect with a Function2 and specified parameter which is passed to the function.static <T,
P, A, R extends Collection<A>>
RIterate.collectWith
(Iterable<T> iterable, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) Same as collectWith but with a targetCollection parameter to gather the results.static <T,
P, A> MutableList<A> ListIterate.collectWith
(List<T> list, Function2<? super T, ? super P, ? extends A> function, P parameter) static <T,
P, A, R extends Collection<A>>
RListIterate.collectWith
(List<T> list, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) static <T,
IV> IV ArrayIterate.injectInto
(IV injectValue, T[] objectArray, Function2<? super IV, ? super T, ? extends IV> function) static <T,
IV> IV ArrayListIterate.injectInto
(IV injectValue, ArrayList<T> list, Function2<? super IV, ? super T, ? extends IV> function) static <T,
IV> IV Iterate.injectInto
(IV injectValue, Iterable<T> iterable, Function2<? super IV, ? super T, ? extends IV> function) static <T,
IV> IV ListIterate.injectInto
(IV injectValue, List<T> list, Function2<? super IV, ? super T, ? extends IV> function) static <K,
V, IV> IV MapIterate.injectInto
(IV injectValue, Map<K, V> map, Function2<? super IV, ? super V, ? extends IV> function) static <IV,
K, V> IV MapIterate.injectIntoIf
(IV initialValue, Map<K, V> map, Predicate<? super V> predicate, Function2<? super IV, ? super V, ? extends IV> function) Same asMapIterate.injectInto(Object, Map, Function2)
, but only applies the value to the function if the predicate returns true for the value.static <T,
R> R StringIterate.injectIntoTokens
(String string, String separator, R injectedValue, Function2<? super R, String, ? extends R> function) For each token in a string separated by the specified separator, execute the specified Function2, returning the result value from the function. -
Uses of Function2 in org.eclipse.collections.impl.utility.internal
Modifier and TypeMethodDescriptionstatic <T,
K, V> MutableMap<K, V> IterableIterate.aggregateBy
(Iterable<T> iterable, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <T,
K, V> MutableMap<K, V> IteratorIterate.aggregateBy
(Iterator<T> iterator, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <T,
K, V> MutableMap<K, V> RandomAccessListIterate.aggregateBy
(List<T> list, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator) static <A,
B, C> LazyIterable<C> SetIterables.cartesianProduct
(SetIterable<A> set1, SetIterable<B> set2, Function2<A, B, C> function) static <T,
P, V, R extends Collection<V>>
RInternalArrayIterate.collectWith
(T[] array, int size, Function2<? super T, ? super P, ? extends V> function, P parameter, R target) static <T,
P, A, R extends Collection<A>>
RIterableIterate.collectWith
(Iterable<T> iterable, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) static <T,
P, V> MutableList<V> IterableIterate.collectWith
(Iterable<T> iterable, Function2<? super T, ? super P, ? extends V> function, P parameter) static <T,
P, A, R extends Collection<A>>
RIteratorIterate.collectWith
(Iterator<T> iterator, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) static <T,
P, A, R extends Collection<A>>
RRandomAccessListIterate.collectWith
(List<T> list, Function2<? super T, ? super P, ? extends A> function, P parameter, R targetCollection) static <T,
IV> IV IterableIterate.injectInto
(IV injectValue, Iterable<T> iterable, Function2<? super IV, ? super T, ? extends IV> function) static <T,
IV> IV IteratorIterate.injectInto
(IV injectValue, Iterator<T> iterator, Function2<? super IV, ? super T, ? extends IV> function) static <T,
IV> IV RandomAccessListIterate.injectInto
(IV injectValue, List<T> list, Function2<? super IV, ? super T, ? extends IV> function)