Uses of Interface
org.eclipse.collections.api.block.function.Function2
Packages that use 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
MapThis 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.
-
Uses of Function2 in org.eclipse.collections.api
Methods in org.eclipse.collections.api with parameters of type Function2Modifier 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 aFunction2and 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) Same as flatCollect, only with a Function2 that is passed an extra parameter.default <P,V, R extends Collection<V>>
RRichIterable.flatCollectWith(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter, R target) Same as flatCollectWith, only the results are collected into the target collection.<IV> IVRichIterable.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.default <K> MapIterable<K,T> RichIterable.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction) Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function.default <K,R extends MutableMapIterable<K, T>>
RRichIterable.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction, R target) Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. -
Uses of Function2 in org.eclipse.collections.api.bag
Methods in org.eclipse.collections.api.bag with parameters of type Function2Modifier 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) default <K,R extends MutableMapIterable<K, T>>
RBag.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction, R target) -
Uses of Function2 in org.eclipse.collections.api.bag.sorted
Methods in org.eclipse.collections.api.bag.sorted with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.bimap with parameters of type Function2Modifier 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.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> ImmutableBiMap<R,V> ImmutableBiMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> MutableBiMap<R,V> MutableBiMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) 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) default <KK> ImmutableMapIterable<KK,V> ImmutableBiMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) default <KK> MutableMap<KK,V> MutableBiMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) -
Uses of Function2 in org.eclipse.collections.api.collection
Methods in org.eclipse.collections.api.collection with parameters of type Function2Modifier 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 aFunction2and 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) default <K> ImmutableMapIterable<K,T> ImmutableCollection.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction) -
Uses of Function2 in org.eclipse.collections.api.list
Methods in org.eclipse.collections.api.list with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.map with parameters of type Function2Modifier 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) <K1,V1, V2> MutableOrderedMap<K1, V2> MutableOrderedMap.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> MutableOrderedMap<KK, VV> MutableOrderedMap.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<R,V> ImmutableMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> ImmutableMapIterable<R,V> ImmutableMapIterable.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> ImmutableOrderedMap<R,V> ImmutableOrderedMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> MapIterable<R,V> MapIterable.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) For each key and value of the map the function is evaluated.<R> MutableMap<R,V> MutableMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> MutableMapIterable<R,V> MutableMapIterable.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> MutableOrderedMap<R,V> MutableOrderedMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <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) default <KK> ImmutableMap<KK,V> ImmutableMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) default <KK> ImmutableMapIterable<KK,V> ImmutableMapIterable.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) <KK> ImmutableOrderedMap<KK,V> ImmutableOrderedMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) default <KK> MutableMap<KK,V> MutableMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) default <KK> MutableMapIterable<KK,V> MutableMapIterable.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) <KK> MutableOrderedMap<KK,V> MutableOrderedMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) <P> VMutableMapIterable.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
Methods in org.eclipse.collections.api.map.primitive with parameters of type Function2Modifier 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) default <K> ImmutableMap<K,V> ImmutablePrimitiveObjectMap.reduceBy(Function<? super V, ? extends K> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) default <K> MutableMap<K,V> MutablePrimitiveObjectMap.reduceBy(Function<? super V, ? extends K> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) <P> VMutableByteObjectMap.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> VMutableCharObjectMap.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> VMutableDoubleObjectMap.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> VMutableFloatObjectMap.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> VMutableIntObjectMap.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> VMutableLongObjectMap.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> VMutableShortObjectMap.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
Methods in org.eclipse.collections.api.map.sorted with parameters of type Function2Modifier 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> ImmutableOrderedMap<R,V> ImmutableSortedMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <R> MutableOrderedMap<R,V> MutableSortedMap.collectKeysUnique(Function2<? super K, ? super V, ? extends R> function) <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) default <KK> ImmutableMap<KK,V> ImmutableSortedMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) -
Uses of Function2 in org.eclipse.collections.api.multimap
Methods in org.eclipse.collections.api.multimap with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.bag with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.list with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.ordered with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.set with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.sortedbag with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.multimap.sortedset with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.ordered with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.set with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.set.sorted with parameters of type Function2Modifier 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
Methods in org.eclipse.collections.api.stack with parameters of type Function2Modifier 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) default <K> ImmutableMap<K,T> ImmutableStack.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction) default <K> MutableMap<K,T> MutableStack.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction)