Uses of Interface
org.eclipse.collections.api.block.function.Function
Packages that use Function
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 factory API for creating instances of maps with user defined
HashingStrategys.This package contains Factory API for
ImmutableHashingStrategySetFactory and MutableHashingStrategySetFactory.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 Function in org.eclipse.collections.api
Methods in org.eclipse.collections.api with parameters of type FunctionModifier 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.<K,V> MapIterable<K, V> ParallelIterable.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) default <K,V> MapIterable<K, V> RichIterable.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function.<V> LazyIterable<V>Creates a deferred iterable for collecting elements from the current iterable.<V> ParallelIterable<V>Creates a parallel iterable for collecting elements from the current iterable.<V> RichIterable<V>Returns a new collection with the results of applying the specified function on each element of the source collection.<V,R extends Collection<V>>
RSame asRichIterable.collect(Function), except that the results are gathered into the specifiedtargetcollection.<V> LazyIterable<V>Creates a deferred iterable for selecting and collecting elements from the current iterable.<V> ParallelIterable<V>ParallelIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.<V> RichIterable<V>Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate.<V,R extends Collection<V>>
RRichIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function, R target) Same as the collectIf method with two parameters but uses the specified target collection for the results.default <V> booleanRichIterable.containsBy(Function<? super T, ? extends V> function, V value) Returns true if the iterable has an element which responds true to element.equals(value) after applying the specified function to the element.default <V> Bag<V>This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.default <V,R extends MutableBagIterable<V>>
RThis method will count the number of occurrences of each value calculated by applying the function to each element of the collection.default <V> Bag<V>RichIterable.countByEach(Function<? super T, ? extends Iterable<V>> function) This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.default <V,R extends MutableBagIterable<V>>
RRichIterable.countByEach(Function<? super T, ? extends Iterable<V>> function, R target) This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.<V> LazyIterable<V>LazyIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a deferred flattening iterable for the current iterable.<V> ParallelIterable<V>ParallelIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> RichIterable<V>RichIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) flatCollectis a special case ofRichIterable.collect(Function).<V,R extends Collection<V>>
RRichIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableBooleanCollection>
RRichIterable.flatCollectBoolean(Function<? super T, ? extends BooleanIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableByteCollection>
RRichIterable.flatCollectByte(Function<? super T, ? extends ByteIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableCharCollection>
RRichIterable.flatCollectChar(Function<? super T, ? extends CharIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableDoubleCollection>
RRichIterable.flatCollectDouble(Function<? super T, ? extends DoubleIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableFloatCollection>
RRichIterable.flatCollectFloat(Function<? super T, ? extends FloatIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableIntCollection>
RRichIterable.flatCollectInt(Function<? super T, ? extends IntIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableLongCollection>
RRichIterable.flatCollectLong(Function<? super T, ? extends LongIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.default <R extends MutableShortCollection>
RRichIterable.flatCollectShort(Function<? super T, ? extends ShortIterable> function, R target) Same as flatCollect, only the results are collected into the target collection.For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable.<V,R extends MutableMultimap<V, T>>
RSame asRichIterable.groupBy(Function), except that the results are gathered into the specifiedtargetmultimap.default <K,V, R extends MutableMultimap<K, V>>
RRichIterable.groupByAndCollect(Function<? super T, ? extends K> groupByFunction, Function<? super T, ? extends V> collectFunction, R target) Applies a groupBy function over the iterable, followed by a collect function.ParallelIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) RichIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) Similar toRichIterable.groupBy(Function), except the result of evaluating function will return a collection of keys for each value.<V,R extends MutableMultimap<V, T>>
RRichIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function, R target) Same asRichIterable.groupByEach(Function), except that the results are gathered into the specifiedtargetmultimap.<V> MapIterable<V,T> ParallelIterable.groupByUniqueKey(Function<? super T, ? extends V> function) <V> MapIterable<V,T> RichIterable.groupByUniqueKey(Function<? super T, ? extends V> function) For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key.<V,R extends MutableMapIterable<V, T>>
RRichIterable.groupByUniqueKey(Function<? super T, ? extends V> function, R target) Same asRichIterable.groupByUniqueKey(Function), except that the results are gathered into the specifiedtargetmap.default StringParallelIterable.makeString(Function<? super T, Object> function, String start, String separator, String end) default StringRichIterable.makeString(Function<? super T, Object> function, String start, String separator, String end) Returns a string representation of the collection, created by applying the function supplied to each element, with the elements separated by the specified separator and enclosed between the start and end strings.<V extends Comparable<? super V>>
T<V extends Comparable<? super V>>
TReturns the maximum elements out of this container based on the natural order of the attribute returned by Function.default <V extends Comparable<? super V>>
Optional<T>RichIterable.maxByOptional(Function<? super T, ? extends V> function) Returns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional.<V extends Comparable<? super V>>
T<V extends Comparable<? super V>>
TReturns the minimum elements out of this container based on the natural order of the attribute returned by Function.default <V extends Comparable<? super V>>
Optional<T>RichIterable.minByOptional(Function<? super T, ? extends V> function) Returns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional.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.<V> ObjectDoubleMap<V>RichIterable.sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectDoubleMap<V>RichIterable.sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectLongMap<V>RichIterable.sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectLongMap<V>RichIterable.sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) Groups and sums the values using the two specified functions.<NK,NV> MutableBiMap<NK, NV> RichIterable.toBiMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to a BiMap implementation using the specified key and value functions.default <NK,NV> ImmutableBiMap<NK, NV> RichIterable.toImmutableBiMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to an immutable BiMap implementation using the specified key and value functions.default <NK,NV> ImmutableMap<NK, NV> RichIterable.toImmutableMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to an ImmutableMap implementation using the specified key and value functions.default <V extends Comparable<? super V>>
ImmutableSortedBag<T>RichIterable.toImmutableSortedBagBy(Function<? super T, ? extends V> function) Converts the collection to an ImmutableSortedBag implementation and sorts it based on the natural order of the attribute returned byfunction.default <V extends Comparable<? super V>>
ImmutableList<T>RichIterable.toImmutableSortedListBy(Function<? super T, ? extends V> function) Converts the collection to an ImmutableList implementation and sorts it based on the natural order of the attribute returned byfunction.default <V extends Comparable<? super V>>
ImmutableSortedSet<T>RichIterable.toImmutableSortedSetBy(Function<? super T, ? extends V> function) Converts the collection to an ImmutableSortedSet implementation and sorts it based on the natural order of the attribute returned byfunction.<NK,NV> MutableMap<NK, NV> ParallelIterable.toMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) <NK,NV> MutableMap<NK, NV> RichIterable.toMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to a MutableMap implementation using the specified key and value functions.default <NK,NV, R extends Map<NK, NV>>
RRichIterable.toMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction, R target) Same asRichIterable.toMap(Function, Function), except that the results are gathered into the specifiedtargetmap.<V extends Comparable<? super V>>
MutableSortedBag<T>ParallelIterable.toSortedBagBy(Function<? super T, ? extends V> function) default <V extends Comparable<? super V>>
MutableSortedBag<T>RichIterable.toSortedBagBy(Function<? super T, ? extends V> function) Converts the collection to a MutableSortedBag implementation and sorts it based on the natural order of the attribute returned byfunction.<V extends Comparable<? super V>>
MutableList<T>ParallelIterable.toSortedListBy(Function<? super T, ? extends V> function) default <V extends Comparable<? super V>>
MutableList<T>RichIterable.toSortedListBy(Function<? super T, ? extends V> function) Converts the collection to a MutableList implementation and sorts it based on the natural order of the attribute returned byfunction.<NK,NV> MutableSortedMap<NK, NV> ParallelIterable.toSortedMap(Comparator<? super NK> comparator, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) <NK,NV> MutableSortedMap<NK, NV> ParallelIterable.toSortedMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) <NK,NV> MutableSortedMap<NK, NV> RichIterable.toSortedMap(Comparator<? super NK> comparator, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the given comparator.<NK,NV> MutableSortedMap<NK, NV> RichIterable.toSortedMap(Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to a MutableSortedMap implementation using the specified key and value functions sorted by the key elements' natural ordering.default <KK extends Comparable<? super KK>,NK, NV>
MutableSortedMap<NK,NV> RichIterable.toSortedMapBy(Function<? super NK, KK> sortBy, Function<? super T, ? extends NK> keyFunction, Function<? super T, ? extends NV> valueFunction) Converts the collection to a MutableSortedMap implementation using the specified key and value functions and sorts it based on the natural order of the attribute returned bysortByfunction.<V extends Comparable<? super V>>
MutableSortedSet<T>ParallelIterable.toSortedSetBy(Function<? super T, ? extends V> function) default <V extends Comparable<? super V>>
MutableSortedSet<T>RichIterable.toSortedSetBy(Function<? super T, ? extends V> function) Converts the collection to a MutableSortedSet implementation and sorts it based on the natural order of the attribute returned byfunction. -
Uses of Function in org.eclipse.collections.api.bag
Methods in org.eclipse.collections.api.bag with parameters of type FunctionModifier 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.<V> ImmutableBag<V><V> MutableBag<V><V> ParallelUnsortedBag<V>Creates a parallel iterable for collecting elements from the current iterable.<V> UnsortedBag<V><V> ImmutableBag<V><V> MutableBag<V><V> ParallelUnsortedBag<V>ParallelUnsortedBag.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.<V> UnsortedBag<V>default <V> ImmutableBag<V>default <V> MutableBag<V>default <V> ImmutableBag<V>ImmutableBag.countByEach(Function<? super T, ? extends Iterable<V>> function) default <V> MutableBag<V>MutableBag.countByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableBag<V>ImmutableBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableBag<V>MutableBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ParallelUnsortedBag<V>ParallelUnsortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> UnsortedBag<V>UnsortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> BagMultimap<V,T> <V> ImmutableBagMultimap<V,T> <V> ImmutableBagIterableMultimap<V,T> <V> MutableBagMultimap<V,T> <V> MutableBagIterableMultimap<V,T> <V> BagMultimap<V,T> <V> UnsortedBagMultimap<V,T> <V> UnsortedBagMultimap<V,T> <V> BagMultimap<V,T> Bag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableBagMultimap<V,T> ImmutableBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableBagIterableMultimap<V,T> ImmutableBagIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableBagMultimap<V,T> MutableBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableBagIterableMultimap<V,T> MutableBagIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> BagMultimap<V,T> ParallelBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> UnsortedBagMultimap<V,T> ParallelUnsortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> UnsortedBagMultimap<V,T> UnsortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) 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 Function in org.eclipse.collections.api.bag.sorted
Methods in org.eclipse.collections.api.bag.sorted with parameters of type FunctionModifier and TypeMethodDescription<V> ImmutableList<V><V> MutableList<V><V> ParallelListIterable<V>Creates a parallel iterable for collecting elements from the current iterable.<V> ListIterable<V><V> ImmutableList<V>ImmutableSortedBag.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> MutableList<V>MutableSortedBag.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> ParallelListIterable<V>ParallelSortedBag.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.<V> ListIterable<V>default <V> ImmutableBag<V>default <V> MutableBag<V>default <V> ImmutableBag<V>ImmutableSortedBag.countByEach(Function<? super T, ? extends Iterable<V>> function) default <V> MutableBag<V>MutableSortedBag.countByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableList<V>ImmutableSortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableList<V>MutableSortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ParallelListIterable<V>ParallelSortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> ListIterable<V>SortedBag.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableSortedBagMultimap<V,T> <V> MutableSortedBagMultimap<V,T> <V> SortedBagMultimap<V,T> <V> SortedBagMultimap<V,T> <V> ImmutableSortedBagMultimap<V,T> ImmutableSortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableSortedBagMultimap<V,T> MutableSortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SortedBagMultimap<V,T> ParallelSortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SortedBagMultimap<V,T> SortedBag.groupByEach(Function<? super T, ? extends Iterable<V>> function) -
Uses of Function in org.eclipse.collections.api.bimap
Methods in org.eclipse.collections.api.bimap with parameters of type FunctionModifier 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) default <KK,VV> ImmutableMap<KK, VV> ImmutableBiMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <V1> ImmutableBagIterable<V1><V1> ImmutableBagIterable<V1><V1> ImmutableBagIterable<V1>ImmutableBiMap.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <V1> SetMultimap<V1,V> <V1> ImmutableSetMultimap<V1,V> <V1> MutableSetMultimap<V1,V> <V1> SetMultimap<V1,V> BiMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> ImmutableSetMultimap<V1,V> ImmutableBiMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> MutableSetMultimap<V1,V> MutableBiMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) BiMap.groupByUniqueKey(Function<? super V, ? extends VV> function) default <VV> ImmutableBiMap<VV,V> ImmutableBiMap.groupByUniqueKey(Function<? super V, ? extends VV> function) default <VV> MutableBiMap<VV,V> MutableBiMap.groupByUniqueKey(Function<? super V, ? extends VV> function) 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 Function in org.eclipse.collections.api.block.comparator
Constructors in org.eclipse.collections.api.block.comparator with parameters of type FunctionModifierConstructorDescriptionFunctionComparator(Function<? super T, ? extends V> function, SerializableComparator<V> comparator) -
Uses of Function in org.eclipse.collections.api.block.factory
Methods in org.eclipse.collections.api.block.factory with parameters of type FunctionModifier and TypeMethodDescriptionstatic <T,V extends Comparable<? super V>>
SerializableComparator<T>SerializableComparators.byFunction(Function<? super T, ? extends V> function) static <T,V> SerializableComparator<T> SerializableComparators.byFunction(Function<? super T, ? extends V> function, SerializableComparator<V> comparator) -
Uses of Function in org.eclipse.collections.api.collection
Methods in org.eclipse.collections.api.collection with parameters of type FunctionModifier 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) default <K,V> ImmutableMap<K, V> ImmutableCollection.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) default <K,V> MutableMap<K, V> MutableCollection.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) <V> ImmutableCollection<V><V> MutableCollection<V>Returns a new MutableCollection with the results of applying the specified function to each element of the source collection.<V> ImmutableCollection<V>ImmutableCollection.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> MutableCollection<V>MutableCollection.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Returns a new MutableCollection with the results of applying the specified function to each element of the source collection, but only for elements that evaluate to true for the specified predicate.default <V> ImmutableBag<V>default <V> MutableBag<V>default <V> ImmutableBag<V>ImmutableCollection.countByEach(Function<? super T, ? extends Iterable<V>> function) default <V> MutableBag<V>MutableCollection.countByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableCollection<V>ImmutableCollection.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableCollection<V>MutableCollection.flatCollect(Function<? super T, ? extends Iterable<V>> function) flatCollectis a special case ofRichIterable.collect(Function).<V> ImmutableMultimap<V,T> <V> MutableMultimap<V,T> For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable.<V> ImmutableMultimap<V,T> ImmutableCollection.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableMultimap<V,T> MutableCollection.groupByEach(Function<? super T, ? extends Iterable<V>> function) default <V> ImmutableMap<V,T> ImmutableCollection.groupByUniqueKey(Function<? super T, ? extends V> function) default <V> MutableMap<V,T> MutableCollection.groupByUniqueKey(Function<? super T, ? extends V> function) default <K> ImmutableMapIterable<K,T> ImmutableCollection.reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction) <V> ImmutableObjectDoubleMap<V>ImmutableCollection.sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) <V> MutableObjectDoubleMap<V>MutableCollection.sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) <V> ImmutableObjectDoubleMap<V>ImmutableCollection.sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) <V> MutableObjectDoubleMap<V>MutableCollection.sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) <V> ImmutableObjectLongMap<V>ImmutableCollection.sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) <V> MutableObjectLongMap<V>MutableCollection.sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) <V> ImmutableObjectLongMap<V>ImmutableCollection.sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) <V> MutableObjectLongMap<V>MutableCollection.sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) -
Uses of Function in org.eclipse.collections.api.factory.bag.strategy
Methods in org.eclipse.collections.api.factory.bag.strategy with parameters of type FunctionModifier and TypeMethodDescriptiondefault <T,V> MutableBag<T> MutableHashingStrategyBagFactory.fromFunction(Function<? super T, ? extends V> function) Since 11.1 -
Uses of Function in org.eclipse.collections.api.factory.map.primitive
Methods in org.eclipse.collections.api.factory.map.primitive with parameters of type FunctionModifier and TypeMethodDescription<T,V> ImmutableByteObjectMap<V> ImmutableByteObjectMapFactory.from(Iterable<T> iterable, ByteFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableByteObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableCharObjectMap<V> ImmutableCharObjectMapFactory.from(Iterable<T> iterable, CharFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableCharObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableDoubleObjectMap<V> ImmutableDoubleObjectMapFactory.from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableDoubleObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableFloatObjectMap<V> ImmutableFloatObjectMapFactory.from(Iterable<T> iterable, FloatFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableFloatObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableIntObjectMap<V> ImmutableIntObjectMapFactory.from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableLongObjectMap<V> ImmutableLongObjectMapFactory.from(Iterable<T> iterable, LongFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableLongObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectBooleanMap<K> ImmutableObjectBooleanMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, BooleanFunction<? super T> valueFunction) Creates anImmutableObjectBooleanMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectByteMap<K> ImmutableObjectByteMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ByteFunction<? super T> valueFunction) Creates anImmutableObjectByteMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectCharMap<K> ImmutableObjectCharMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, CharFunction<? super T> valueFunction) Creates anImmutableObjectCharMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectDoubleMap<K> ImmutableObjectDoubleMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, DoubleFunction<? super T> valueFunction) Creates anImmutableObjectDoubleMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectFloatMap<K> ImmutableObjectFloatMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, FloatFunction<? super T> valueFunction) Creates anImmutableObjectFloatMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectIntMap<K> ImmutableObjectIntMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, IntFunction<? super T> valueFunction) Creates anImmutableObjectIntMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectLongMap<K> ImmutableObjectLongMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, LongFunction<? super T> valueFunction) Creates anImmutableObjectLongMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> ImmutableObjectShortMap<K> ImmutableObjectShortMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction) Creates anImmutableObjectShortMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> ImmutableShortObjectMap<V> ImmutableShortObjectMapFactory.from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anImmutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableByteObjectMap<V> MutableByteObjectMapFactory.from(Iterable<T> iterable, ByteFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableByteObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableCharObjectMap<V> MutableCharObjectMapFactory.from(Iterable<T> iterable, CharFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableCharObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableDoubleObjectMap<V> MutableDoubleObjectMapFactory.from(Iterable<T> iterable, DoubleFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableDoubleObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableFloatObjectMap<V> MutableFloatObjectMapFactory.from(Iterable<T> iterable, FloatFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableFloatObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableIntObjectMap<V> MutableIntObjectMapFactory.from(Iterable<T> iterable, IntFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableIntObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableLongObjectMap<V> MutableLongObjectMapFactory.from(Iterable<T> iterable, LongFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableLongObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectBooleanMap<K> MutableObjectBooleanMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, BooleanFunction<? super T> valueFunction) Creates anMutableObjectBooleanMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectByteMap<K> MutableObjectByteMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ByteFunction<? super T> valueFunction) Creates anMutableObjectByteMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectCharMap<K> MutableObjectCharMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, CharFunction<? super T> valueFunction) Creates anMutableObjectCharMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectDoubleMap<K> MutableObjectDoubleMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, DoubleFunction<? super T> valueFunction) Creates anMutableObjectDoubleMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectFloatMap<K> MutableObjectFloatMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, FloatFunction<? super T> valueFunction) Creates anMutableObjectFloatMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectIntMap<K> MutableObjectIntMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, IntFunction<? super T> valueFunction) Creates anMutableObjectIntMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectLongMap<K> MutableObjectLongMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, LongFunction<? super T> valueFunction) Creates anMutableObjectLongMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,K> MutableObjectShortMap<K> MutableObjectShortMapFactory.from(Iterable<T> iterable, Function<? super T, ? extends K> keyFunction, ShortFunction<? super T> valueFunction) Creates anMutableObjectShortMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction.<T,V> MutableShortObjectMap<V> MutableShortObjectMapFactory.from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T, ? extends V> valueFunction) Creates anMutableShortObjectMapfrom anIterable<T>by applyingkeyFunctionandvalueFunction. -
Uses of Function in org.eclipse.collections.api.factory.map.strategy
Methods in org.eclipse.collections.api.factory.map.strategy with parameters of type FunctionModifier and TypeMethodDescriptiondefault <K,V, T> MutableMap<K, V> MutableHashingStrategyMapFactory.fromFunction(Function<? super K, ? extends T> function) Since 11.1 -
Uses of Function in org.eclipse.collections.api.factory.set.strategy
Methods in org.eclipse.collections.api.factory.set.strategy with parameters of type FunctionModifier and TypeMethodDescriptiondefault <T,V> MutableSet<T> MutableHashingStrategySetFactory.fromFunction(Function<? super T, ? extends V> function) Since 11.1 -
Uses of Function in org.eclipse.collections.api.list
Methods in org.eclipse.collections.api.list with parameters of type FunctionModifier and TypeMethodDescription<V> ImmutableList<V><V> ListIterable<V>default <V> MutableList<V><V> ParallelListIterable<V>Creates a parallel iterable for collecting elements from the current iterable.<V> ImmutableList<V><V> ListIterable<V>default <V> MutableList<V><V> ParallelListIterable<V>ParallelListIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.<V> ImmutableList<T>ImmutableList.distinctBy(Function<? super T, ? extends V> function) <V> ListIterable<T>ListIterable.distinctBy(Function<? super T, ? extends V> function) Returns a newListIterablecontaining the distinct elements in this list.<V> MutableList<T>MutableList.distinctBy(Function<? super T, ? extends V> function) <V> ImmutableList<V>ImmutableList.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ListIterable<V>ListIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) default <V> MutableList<V>MutableList.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ParallelListIterable<V>ParallelListIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> ImmutableListMultimap<V,T> <V> ListMultimap<V,T> <V> MutableListMultimap<V,T> <V> ListMultimap<V,T> <V> ImmutableListMultimap<V,T> ImmutableList.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ListMultimap<V,T> ListIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableListMultimap<V,T> MutableList.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ListMultimap<V,T> ParallelListIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V extends Comparable<? super V>>
MultiReaderList<T>MultiReaderList.sortThisBy(Function<? super T, ? extends V> function) default <V extends Comparable<? super V>>
MutableList<T>MutableList.sortThisBy(Function<? super T, ? extends V> function) Sorts the internal data structure of this list based on the natural order of the attribute returned byfunction. -
Uses of Function in org.eclipse.collections.api.map
Methods in org.eclipse.collections.api.map with parameters of type FunctionModifier 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) default <KK,VV> ImmutableMap<KK, VV> ImmutableMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) default <KK,VV> ImmutableMapIterable<KK, VV> ImmutableMapIterable.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <KK,VV> ImmutableOrderedMap<KK, VV> ImmutableOrderedMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) default <KK,VV> MutableMap<KK, VV> MutableMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) default <KK,VV> MutableMapIterable<KK, VV> MutableMapIterable.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <KK,VV> MutableOrderedMap<KK, VV> MutableOrderedMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <VV> ImmutableBag<VV><VV> ImmutableList<VV><R> MutableBag<R><VV> MutableList<VV><VV> ListIterable<VV><V1> Bag<V1><R> ImmutableBag<R><V1> ImmutableList<V1>ImmutableOrderedMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> function) <R> MutableBag<R><V1> MutableList<V1>MutableOrderedMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> function) <V1> ListIterable<V1><V1> Bag<V1>UnsortedMapIterable.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> function) <E> MutableMap<K,V> MutableMap.collectKeysAndValues(Iterable<E> iterable, Function<? super E, ? extends K> keyFunction, Function<? super E, ? extends V> valueFunction) Adds all the entries derived fromiterabletothis.default <V1> ImmutableBag<V1>default <V1> MutableBag<V1>default <V1> ImmutableBag<V1>ImmutableMapIterable.countByEach(Function<? super V, ? extends Iterable<V1>> function) default <V1> MutableBag<V1>MutableMapIterable.countByEach(Function<? super V, ? extends Iterable<V1>> function) <R> ImmutableBag<R>ImmutableMap.flatCollect(Function<? super V, ? extends Iterable<R>> function) <V1> ImmutableList<V1>ImmutableOrderedMap.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <R> MutableBag<R>MutableMap.flatCollect(Function<? super V, ? extends Iterable<R>> function) <V1> MutableList<V1>MutableOrderedMap.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <V1> ListIterable<V1>OrderedMap.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <V1> Bag<V1>UnsortedMapIterable.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <P> VMutableMapIterable.getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter) Get and return the value in the Map at the specified key.MutableMapIterable.getIfAbsentPutWithKey(K key, Function<? super K, ? extends V> function) Get and return the value in the Map at the specified key.<P> VMapIterable.getIfAbsentWith(K key, Function<? super P, ? extends V> function, P parameter) Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified function and parameter.<VV> ImmutableBagMultimap<VV,V> <V1> ImmutableMultimap<V1,V> <V1> ImmutableListMultimap<V1,V> <VV> MutableBagMultimap<VV,V> <V1> MutableMultimap<V1,V> <V1> MutableListMultimap<V1,V> <V1> ListMultimap<V1,V> <V1> BagMultimap<V1,V> <VV> ImmutableBagMultimap<VV,V> ImmutableMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <V1> ImmutableMultimap<V1,V> ImmutableMapIterable.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> ImmutableListMultimap<V1,V> ImmutableOrderedMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <VV> MutableBagMultimap<VV,V> MutableMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <V1> MutableMultimap<V1,V> MutableMapIterable.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> MutableListMultimap<V1,V> MutableOrderedMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> ListMultimap<V1,V> OrderedMap.groupByEach(Function<? super V, ? extends Iterable<V1>> function) <V1> BagMultimap<V1,V> UnsortedMapIterable.groupByEach(Function<? super V, ? extends Iterable<V1>> function) default <V1> ImmutableMap<V1,V> ImmutableMap.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> ImmutableMapIterable<V1,V> ImmutableMapIterable.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> ImmutableOrderedMap<V1,V> ImmutableOrderedMap.groupByUniqueKey(Function<? super V, ? extends V1> function) default <V1> MutableMap<V1,V> MutableMap.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> MutableMapIterable<V1,V> MutableMapIterable.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> MutableOrderedMap<V1,V> MutableOrderedMap.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> OrderedMap<V1,V> OrderedMap.groupByUniqueKey(Function<? super V, ? extends V1> function) <V1> UnsortedMapIterable<V1,V> UnsortedMapIterable.groupByUniqueKey(Function<? super V, ? extends V1> function) <A> AMapIterable.ifPresentApply(K key, Function<? super V, ? extends A> function) If there is a value in the Map that corresponds to the specified key return the result of applying the specified Function on the value, otherwise return null.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) <VV> ImmutableObjectDoubleMap<VV>ImmutableOrderedMap.sumByDouble(Function<? super V, ? extends VV> groupBy, DoubleFunction<? super V> function) <V1> MutableObjectDoubleMap<V1>MutableMapIterable.sumByDouble(Function<? super V, ? extends V1> groupBy, DoubleFunction<? super V> function) <VV> ImmutableObjectDoubleMap<VV>ImmutableOrderedMap.sumByFloat(Function<? super V, ? extends VV> groupBy, FloatFunction<? super V> function) <V1> MutableObjectDoubleMap<V1>MutableMapIterable.sumByFloat(Function<? super V, ? extends V1> groupBy, FloatFunction<? super V> function) <VV> ImmutableObjectLongMap<VV>ImmutableOrderedMap.sumByInt(Function<? super V, ? extends VV> groupBy, IntFunction<? super V> function) <V1> MutableObjectLongMap<V1>MutableMapIterable.sumByInt(Function<? super V, ? extends V1> groupBy, IntFunction<? super V> function) <VV> ImmutableObjectLongMap<VV>ImmutableOrderedMap.sumByLong(Function<? super V, ? extends VV> groupBy, LongFunction<? super V> function) <V1> MutableObjectLongMap<V1>MutableMapIterable.sumByLong(Function<? super V, ? extends V1> groupBy, LongFunction<? super V> function) MutableMapIterable.updateValue(K key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Looks up the value associated withkey, applies thefunctionto it, and replaces the value. -
Uses of Function in org.eclipse.collections.api.map.primitive
Methods in org.eclipse.collections.api.map.primitive with parameters of type FunctionModifier 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) default <K,VV> ImmutableMap<K, VV> ImmutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <K,VV> MutableMap<K, VV> MutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V, ? extends K> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <VV> ImmutableBag<VV><VV> MutableBag<VV><VV> Bag<VV><VV> ImmutableBag<VV>ImmutablePrimitiveObjectMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function) <VV> MutableBag<VV>MutablePrimitiveObjectMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function) <VV> Bag<VV>PrimitiveObjectMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends VV> function) <VV> ImmutableBag<VV>ImmutablePrimitiveObjectMap.flatCollect(Function<? super V, ? extends Iterable<VV>> function) <VV> MutableBag<VV>MutablePrimitiveObjectMap.flatCollect(Function<? super V, ? extends Iterable<VV>> function) <VV> Bag<VV>PrimitiveObjectMap.flatCollect(Function<? super V, ? extends Iterable<VV>> function) <P> VMutableByteObjectMap.getIfAbsentPutWith(byte key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableCharObjectMap.getIfAbsentPutWith(char key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableDoubleObjectMap.getIfAbsentPutWith(double key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableFloatObjectMap.getIfAbsentPutWith(float key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableIntObjectMap.getIfAbsentPutWith(int key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableLongObjectMap.getIfAbsentPutWith(long key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<P> VMutableShortObjectMap.getIfAbsentPutWith(short key, Function<? super P, ? extends V> function, P parameter) Retrieves the value associated with the key if one exists; if it does not, invokes the value function with the parameter and associates the result with the key.<VV> ImmutableBagMultimap<VV,V> <VV> MutableBagMultimap<VV,V> <VV> BagMultimap<VV,V> <VV> ImmutableBagMultimap<VV,V> ImmutablePrimitiveObjectMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <VV> MutableBagMultimap<VV,V> MutablePrimitiveObjectMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <VV> BagMultimap<VV,V> PrimitiveObjectMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) default <VV> ImmutableMap<VV,V> ImmutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V, ? extends VV> function) default <VV> MutableMap<VV,V> MutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V, ? extends VV> function) <VV> UnsortedMapIterable<VV,V> PrimitiveObjectMap.groupByUniqueKey(Function<? super V, ? extends VV> function) 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) <VV> ImmutableObjectDoubleMap<VV>ImmutablePrimitiveObjectMap.sumByDouble(Function<? super V, ? extends VV> groupBy, DoubleFunction<? super V> function) <VV> MutableObjectDoubleMap<VV>MutablePrimitiveObjectMap.sumByDouble(Function<? super V, ? extends VV> groupBy, DoubleFunction<? super V> function) <VV> ImmutableObjectDoubleMap<VV>ImmutablePrimitiveObjectMap.sumByFloat(Function<? super V, ? extends VV> groupBy, FloatFunction<? super V> function) <VV> MutableObjectDoubleMap<VV>MutablePrimitiveObjectMap.sumByFloat(Function<? super V, ? extends VV> groupBy, FloatFunction<? super V> function) <VV> ImmutableObjectLongMap<VV>ImmutablePrimitiveObjectMap.sumByInt(Function<? super V, ? extends VV> groupBy, IntFunction<? super V> function) <VV> MutableObjectLongMap<VV>MutablePrimitiveObjectMap.sumByInt(Function<? super V, ? extends VV> groupBy, IntFunction<? super V> function) <VV> ImmutableObjectLongMap<VV>ImmutablePrimitiveObjectMap.sumByLong(Function<? super V, ? extends VV> groupBy, LongFunction<? super V> function) <VV> MutableObjectLongMap<VV>MutablePrimitiveObjectMap.sumByLong(Function<? super V, ? extends VV> groupBy, LongFunction<? super V> function) MutableByteObjectMap.updateValue(byte key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableCharObjectMap.updateValue(char key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableDoubleObjectMap.updateValue(double key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableFloatObjectMap.updateValue(float key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableIntObjectMap.updateValue(int key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableLongObjectMap.updateValue(long key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value.MutableShortObjectMap.updateValue(short key, Function0<? extends V> factory, Function<? super V, ? extends V> function) Look up the value associated withkey, apply thefunctionto it, and replace the value. -
Uses of Function in org.eclipse.collections.api.map.sorted
Methods in org.eclipse.collections.api.map.sorted with parameters of type FunctionModifier 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) default <KK,VV> ImmutableMap<KK, VV> ImmutableSortedMap.aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator) <R> ImmutableList<R><R> MutableList<R><V1> ListIterable<V1><R> ImmutableList<R>ImmutableSortedMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function) <R> MutableList<R>MutableSortedMap.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> function) <V1> ListIterable<V1>SortedMapIterable.collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> function) <E> MutableSortedMap<K,V> MutableSortedMap.collectKeysAndValues(Iterable<E> iterable, Function<? super E, ? extends K> keyFunction, Function<? super E, ? extends V> valueFunction) Adds all the entries derived fromiterabletothis.<R> ImmutableList<R>ImmutableSortedMap.flatCollect(Function<? super V, ? extends Iterable<R>> function) <R> MutableList<R>MutableSortedMap.flatCollect(Function<? super V, ? extends Iterable<R>> function) <V1> ListIterable<V1>SortedMapIterable.flatCollect(Function<? super V, ? extends Iterable<V1>> function) <P> VMutableSortedMap.getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter) Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified one argument Function using the specified parameter, and put that value in the map at the specified key.<VV> ImmutableListMultimap<VV,V> <VV> MutableListMultimap<VV,V> <VV> ListMultimap<VV,V> <VV> ImmutableListMultimap<VV,V> ImmutableSortedMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <VV> MutableListMultimap<VV,V> MutableSortedMap.groupByEach(Function<? super V, ? extends Iterable<VV>> function) <VV> ListMultimap<VV,V> SortedMapIterable.groupByEach(Function<? super V, ? extends Iterable<VV>> function) default <VV> ImmutableMap<VV,V> ImmutableSortedMap.groupByUniqueKey(Function<? super V, ? extends VV> function) default <VV> MutableMap<VV,V> MutableSortedMap.groupByUniqueKey(Function<? super V, ? extends VV> function) default <KK> ImmutableMap<KK,V> ImmutableSortedMap.reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction) -
Uses of Function in org.eclipse.collections.api.multimap
Methods in org.eclipse.collections.api.multimap with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableMultimap<K2, V2> ImmutableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> Multimap<K2, V2> Multimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) Returns a new multimap with the results of applying the specified keyFunction and valueFunction on each key and corresponding values of the source multimap.<K2,V2, R extends MutableMultimap<K2, V2>>
RMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction, R target) Same as the collectKeyMultiValues method but uses the specified target multimap for the results.<K2,V2> MutableMultimap<K2, V2> MutableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableMultimap<K,V2> ImmutableMultimap.collectValues(Function<? super V, ? extends V2> function) Multimap.collectValues(Function<? super V, ? extends V2> function) Returns a new multimap with the results of applying the specified function on each value of the source multimap.<V2,R extends MutableMultimap<K, V2>>
RMultimap.collectValues(Function<? super V, ? extends V2> function, R target) Same as the collect method but uses the specified target multimap for the results.<V2> MutableMultimap<K,V2> MutableMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.bag
Methods in org.eclipse.collections.api.multimap.bag with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableBagIterableMultimap<K2, V2> ImmutableBagIterableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> ImmutableBagMultimap<K2, V2> ImmutableBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagIterableMultimap<K2, V2> MutableBagIterableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagMultimap<K2, V2> MutableBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> UnsortedBagMultimap<K2, V2> UnsortedBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableMultimap<K,V2> ImmutableBagIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ImmutableBagMultimap<K,V2> ImmutableBagMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableMultimap<K,V2> MutableBagIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableBagMultimap<K,V2> MutableBagMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> UnsortedBagMultimap<K,V2> UnsortedBagMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.list
Methods in org.eclipse.collections.api.multimap.list with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableBagMultimap<K2, V2> ImmutableListMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> BagMultimap<K2, V2> ListMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagMultimap<K2, V2> MutableListMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableListMultimap<K,V2> ImmutableListMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ListMultimap<K,V2> ListMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableListMultimap<K,V2> MutableListMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.ordered
Methods in org.eclipse.collections.api.multimap.ordered with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> BagMultimap<K2, V2> OrderedIterableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> OrderedIterableMultimap<K,V2> OrderedIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ReversibleIterableMultimap<K,V2> ReversibleIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ListMultimap<K,V2> SortedIterableMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.set
Methods in org.eclipse.collections.api.multimap.set with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableBagIterableMultimap<K2, V2> ImmutableSetIterableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> ImmutableBagMultimap<K2, V2> ImmutableSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagIterableMultimap<K2, V2> MutableSetIterableMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagMultimap<K2, V2> MutableSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> UnsortedBagMultimap<K2, V2> UnsortedSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableMultimap<K,V2> ImmutableSetIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ImmutableBagMultimap<K,V2> ImmutableSetMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableMultimap<K,V2> MutableSetIterableMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableBagMultimap<K,V2> MutableSetMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> UnsortedBagMultimap<K,V2> UnsortedSetMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.sortedbag
Methods in org.eclipse.collections.api.multimap.sortedbag with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableBagMultimap<K2, V2> ImmutableSortedBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagMultimap<K2, V2> MutableSortedBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> BagMultimap<K2, V2> SortedBagMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableListMultimap<K,V2> ImmutableSortedBagMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableListMultimap<K,V2> MutableSortedBagMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ListMultimap<K,V2> SortedBagMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.multimap.sortedset
Methods in org.eclipse.collections.api.multimap.sortedset with parameters of type FunctionModifier and TypeMethodDescription<K2,V2> ImmutableBagMultimap<K2, V2> ImmutableSortedSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> MutableBagMultimap<K2, V2> MutableSortedSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> BagMultimap<K2, V2> SortedSetMultimap.collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <V2> ImmutableListMultimap<K,V2> ImmutableSortedSetMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> MutableListMultimap<K,V2> MutableSortedSetMultimap.collectValues(Function<? super V, ? extends V2> function) <V2> ListMultimap<K,V2> SortedSetMultimap.collectValues(Function<? super V, ? extends V2> function) -
Uses of Function in org.eclipse.collections.api.ordered
Methods in org.eclipse.collections.api.ordered with parameters of type FunctionModifier and TypeMethodDescription<V> OrderedIterable<V><V> ReversibleIterable<V><V> OrderedIterable<V><V> ReversibleIterable<V>ReversibleIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> OrderedIterable<V>OrderedIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ReversibleIterable<V>ReversibleIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> OrderedIterableMultimap<V,T> <V> ReversibleIterableMultimap<V,T> <V> SortedIterableMultimap<V,T> <V> OrderedIterableMultimap<V,T> OrderedIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ReversibleIterableMultimap<V,T> ReversibleIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SortedIterableMultimap<V,T> SortedIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) -
Uses of Function in org.eclipse.collections.api.set
Methods in org.eclipse.collections.api.set with parameters of type FunctionModifier and TypeMethodDescription<V> ImmutableSet<V><V> MutableSet<V><V> UnsortedSetIterable<V><V> ImmutableSet<V><V> MutableSet<V><V> UnsortedSetIterable<V>UnsortedSetIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> ImmutableSet<V>ImmutableSet.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableSet<V>MutableSet.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> UnsortedSetIterable<V>UnsortedSetIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableSetMultimap<V,T> <V> ImmutableSetIterableMultimap<V,T> <V> MutableSetMultimap<V,T> <V> MutableSetIterableMultimap<V,T> <V> SetMultimap<V,T> <V> UnsortedSetMultimap<V,T> <V> UnsortedSetMultimap<V,T> <V> ImmutableSetMultimap<V,T> ImmutableSet.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableSetIterableMultimap<V,T> ImmutableSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableSetMultimap<V,T> MutableSet.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableSetIterableMultimap<V,T> MutableSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SetMultimap<V,T> ParallelSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> UnsortedSetMultimap<V,T> ParallelUnsortedSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> UnsortedSetMultimap<V,T> UnsortedSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) -
Uses of Function in org.eclipse.collections.api.set.sorted
Methods in org.eclipse.collections.api.set.sorted with parameters of type FunctionModifier and TypeMethodDescription<V> ImmutableList<V><V> MutableList<V><V> ParallelListIterable<V>Creates a parallel iterable for collecting elements from the current iterable.<V> ListIterable<V><V> ImmutableList<V>ImmutableSortedSet.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> MutableList<V>MutableSortedSet.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> ParallelListIterable<V>ParallelSortedSetIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Creates a parallel iterable for selecting and collecting elements from the current iterable.<V> ListIterable<V>SortedSetIterable.collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) <V> ImmutableList<V>ImmutableSortedSet.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableList<V>MutableSortedSet.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ParallelListIterable<V>ParallelSortedSetIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a parallel flattening iterable for the current iterable.<V> ListIterable<V>SortedSetIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableSortedSetMultimap<V,T> <V> MutableSortedSetMultimap<V,T> <V> SortedSetMultimap<V,T> <V> SortedSetMultimap<V,T> <V> ImmutableSortedSetMultimap<V,T> ImmutableSortedSet.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableSortedSetMultimap<V,T> MutableSortedSet.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SortedSetMultimap<V,T> ParallelSortedSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> SortedSetMultimap<V,T> SortedSetIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) -
Uses of Function in org.eclipse.collections.api.stack
Methods in org.eclipse.collections.api.stack with parameters of type FunctionModifier 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) default <K,V> ImmutableMap<K, V> ImmutableStack.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) default <K,V> MutableMap<K, V> MutableStack.aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) <V> ImmutableStack<V><V> MutableStack<V><V> StackIterable<V><V> ImmutableStack<V><V> MutableStack<V><V> StackIterable<V>default <V> ImmutableBag<V>default <V> MutableBag<V>default <V> ImmutableBag<V>ImmutableStack.countByEach(Function<? super T, ? extends Iterable<V>> function) default <V> MutableBag<V>MutableStack.countByEach(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableStack<V>ImmutableStack.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> MutableStack<V>MutableStack.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> StackIterable<V>StackIterable.flatCollect(Function<? super T, ? extends Iterable<V>> function) <V> ImmutableListMultimap<V,T> <V> MutableListMultimap<V,T> <V> ListMultimap<V,T> <V> ImmutableListMultimap<V,T> ImmutableStack.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> MutableListMultimap<V,T> MutableStack.groupByEach(Function<? super T, ? extends Iterable<V>> function) <V> ListMultimap<V,T> StackIterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) default <V> ImmutableMap<V,T> ImmutableStack.groupByUniqueKey(Function<? super T, ? extends V> function) default <V> MutableMap<V,T> MutableStack.groupByUniqueKey(Function<? super T, ? extends V> function) 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) <V> ImmutableObjectDoubleMap<V>ImmutableStack.sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) <V> MutableObjectDoubleMap<V>MutableStack.sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) <V> ImmutableObjectDoubleMap<V>ImmutableStack.sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) <V> MutableObjectDoubleMap<V>MutableStack.sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) <V> ImmutableObjectLongMap<V>ImmutableStack.sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) <V> MutableObjectLongMap<V>MutableStack.sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) <V> ImmutableObjectLongMap<V>ImmutableStack.sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) <V> MutableObjectLongMap<V>MutableStack.sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)