| Package | Description |
|---|---|
| org.eclipse.collections.api |
This package contains interfaces for Eclipse Collections API.
|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.bimap |
This package contains interfaces for BiMap API.
|
| org.eclipse.collections.api.collection | |
| org.eclipse.collections.api.factory.list |
This package contains factory API for creating instances of type
ListIterable. |
| org.eclipse.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
| org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| org.eclipse.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| org.eclipse.collections.api.multimap |
This package contains interfaces for
Multimap. |
| org.eclipse.collections.api.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
<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,R extends MutableMapIterable<K,V>> |
RichIterable.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.
|
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.
|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default T |
RichIterable.detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function)
Returns the first element of the iterable for which the predicate evaluates to true.
|
T |
ParallelIterable.detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
<P> T |
RichIterable.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.
|
<P> T |
ParallelIterable.detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
| Modifier and Type | Method and Description |
|---|---|
default <K,V,R extends MutableMapIterable<K,V>> |
Bag.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.
|
| Modifier and Type | Method and Description |
|---|---|
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 <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> 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.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) |
| Modifier and Type | Method and Description |
|---|---|
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.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.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <K,V> ImmutableMap<K,V> |
ImmutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableList<T> |
MutableListFactory.withNValues(int size,
Function0<? extends T> factory) |
<T> MultiReaderList<T> |
MultiReaderListFactory.withNValues(int size,
Function0<? extends T> factory) |
| Modifier and Type | Method and Description |
|---|---|
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 <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 <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> 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) |
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 <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> MutableMapIterable<KK,VV> |
MutableMapIterable.aggregateBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> 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) |
<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 <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 <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 <KK,VV> MutableMap<KK,VV> |
MutableMapIterable.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) |
<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> ImmutableMapIterable<KK,VV> |
ImmutableMapIterable.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
default <KK,VV> ImmutableMap<KK,VV> |
ImmutableMap.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
V |
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.
|
V |
MutableMapIterable.getIfAbsentPut(K key,
Function0<? extends V> function)
Get and return the value in the Map at the specified key.
|
V |
MutableMapIterable.updateValue(K key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Looks up the value associated with
key, applies the function to it, and replaces the value. |
<P> V |
MutableMapIterable.updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableMapIterable.updateValue(Object, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
| Modifier and Type | Method and Description |
|---|---|
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.aggregateBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Function2<? super VV,? super V,? extends VV> nonMutatingAggregator) |
<K,VV> MutableMap<K,VV> |
MutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
default <K,VV> ImmutableMap<K,VV> |
ImmutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
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.
|
V |
MutableByteObjectMap.updateValue(byte key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableCharObjectMap.updateValue(char key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableDoubleObjectMap.updateValue(double key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableFloatObjectMap.updateValue(float key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableIntObjectMap.updateValue(int key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableLongObjectMap.updateValue(long key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
V |
MutableShortObjectMap.updateValue(short key,
Function0<? extends V> factory,
Function<? super V,? extends V> function)
Look up the value associated with
key, apply the function to it, and replace the value. |
<P> V |
MutableByteObjectMap.updateValueWith(byte key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableCharObjectMap.updateValueWith(char key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableDoubleObjectMap.updateValueWith(double key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableFloatObjectMap.updateValueWith(float key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableIntObjectMap.updateValueWith(int key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableLongObjectMap.updateValueWith(long key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
<P> V |
MutableShortObjectMap.updateValueWith(short key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Updates or sets the value associated with the key by applying the function to the
existing value, if one exists, or the initial value supplied by the factory if one does not.
|
| Modifier and Type | Method and Description |
|---|---|
default <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) |
| Modifier and Type | Method and Description |
|---|---|
<R extends Collection<V>> |
Multimap.toMap(Function0<R> collectionFactory)
Returns a new
MutableMap of keys from this Multimap to the mapped values as a RichIterable. |
| Modifier and Type | Method and Description |
|---|---|
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.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.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <K,V> ImmutableMap<K,V> |
ImmutableStack.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
Copyright © 2004–2022. All rights reserved.