Uses of Interface
org.eclipse.collections.api.block.function.Function0
Packages that use Function0
Package
Description
This package contains interfaces for Eclipse Collections API.
This package contains interfaces for Bag API.
This package contains interfaces for BiMap API.
This package contains factory API for creating instances of type
ListIterable.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 stack API.
-
Uses of Function0 in org.eclipse.collections.api
Methods in org.eclipse.collections.api with parameters of type Function0Modifier 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.ParallelIterable.detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function) default TRichIterable.detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function) Returns the first element of the iterable for which the predicate evaluates to true.<P> TParallelIterable.detectWithIfNone(Predicate2<? super T, ? super P> predicate, P parameter, Function0<? extends T> function) <P> TRichIterable.detectWithIfNone(Predicate2<? super T, ? super P> predicate, P parameter, Function0<? extends T> function) Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, or returns the value of evaluating the specified function. -
Uses of Function0 in org.eclipse.collections.api.bag
Methods in org.eclipse.collections.api.bag with parameters of type Function0Modifier 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. -
Uses of Function0 in org.eclipse.collections.api.bimap
Methods in org.eclipse.collections.api.bimap with parameters of type Function0Modifier 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) -
Uses of Function0 in org.eclipse.collections.api.collection
Methods in org.eclipse.collections.api.collection with parameters of type Function0Modifier 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) -
Uses of Function0 in org.eclipse.collections.api.factory.list
Methods in org.eclipse.collections.api.factory.list with parameters of type Function0Modifier and TypeMethodDescription<T> MultiReaderList<T>MultiReaderListFactory.withNValues(int size, Function0<? extends T> factory) <T> MutableList<T>MutableListFactory.withNValues(int size, Function0<? extends T> factory) -
Uses of Function0 in org.eclipse.collections.api.map
Methods in org.eclipse.collections.api.map with parameters of type Function0Modifier 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) MapIterable.getIfAbsent(K key, Function0<? extends V> function) 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 Function0.MutableMapIterable.getIfAbsentPut(K key, Function0<? extends V> function) Get and return the value in the Map at the specified key.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.<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 Function0 in org.eclipse.collections.api.map.primitive
Methods in org.eclipse.collections.api.map.primitive with parameters of type Function0Modifier 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) ByteObjectMap.getIfAbsent(byte key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.CharObjectMap.getIfAbsent(char key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.DoubleObjectMap.getIfAbsent(double key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.FloatObjectMap.getIfAbsent(float key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.IntObjectMap.getIfAbsent(int key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.LongObjectMap.getIfAbsent(long key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.ShortObjectMap.getIfAbsent(short key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.MutableByteObjectMap.getIfAbsentPut(byte key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableCharObjectMap.getIfAbsentPut(char key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableDoubleObjectMap.getIfAbsentPut(double key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableFloatObjectMap.getIfAbsentPut(float key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableIntObjectMap.getIfAbsentPut(int key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableLongObjectMap.getIfAbsentPut(long key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.MutableShortObjectMap.getIfAbsentPut(short key, Function0<? extends V> function) Retrieves the value associated with the key if one exists; if it does not, invokes the supplier and associates the result with the key.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.<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 Function0 in org.eclipse.collections.api.map.sorted
Methods in org.eclipse.collections.api.map.sorted with parameters of type Function0Modifier 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) -
Uses of Function0 in org.eclipse.collections.api.multimap
Methods in org.eclipse.collections.api.multimap with parameters of type Function0Modifier and TypeMethodDescription<R extends Collection<V>>
MutableMap<K,R> Returns a newMutableMapof keys from this Multimap to the mapped values as aRichIterable. -
Uses of Function0 in org.eclipse.collections.api.stack
Methods in org.eclipse.collections.api.stack with parameters of type Function0Modifier 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)