| 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.factory.map |
This package contains factory API for creating instances of type
MapIterable. |
| 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.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| 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> 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) |
<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> MapIterable<V,T> |
ParallelIterable.groupByUniqueKey(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
MapIterable<T,Integer> |
Bag.toMapOfItemToCount()
Converts the Bag to a Map of the Item type to its count as an Integer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BiMap<K,V>
A map that allows users to look up key-value pairs from either direction.
|
interface |
ImmutableBiMap<K,V>
A
BiMap whose contents cannot be altered after initialization. |
interface |
MutableBiMap<K,V>
A
BiMap whose contents can be altered after initialization. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBiMap<K,V> |
ImmutableBiMap.newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default MutableBiMap<K,V> |
MutableBiMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
MutableMapFactory.ofMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
<K,V> MutableMap<K,V> |
MutableMapFactory.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConcurrentMutableMap<K,V>
A ConcurrentMutableMap provides an api which combines and supports both MutableMap and ConcurrentMap.
|
interface |
FixedSizeMap<K,V>
A FixedSizeMap is a map that may be mutated, but cannot grow or shrink in size.
|
interface |
ImmutableMap<K,V>
An ImmutableMap is different from a JCF Map because it has no mutating methods.
|
interface |
ImmutableMapIterable<K,V> |
interface |
ImmutableOrderedMap<K,V> |
interface |
MutableMap<K,V>
A MutableMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
interface |
MutableMapIterable<K,V> |
interface |
MutableOrderedMap<K,V> |
interface |
OrderedMap<K,V>
A map whose keys are ordered but not necessarily sorted, for example a linked hash map.
|
interface |
UnsortedMapIterable<K,V>
An iterable Map whose elements are unsorted.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
<K2,V2> MapIterable<K2,V2> |
MapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function)
For each key and value of the map the function is evaluated.
|
<R> MapIterable<K,R> |
MapIterable.collectValues(Function2<? super K,? super V,? extends R> function)
For each key and value of the map the function is evaluated.
|
MapIterable<V,K> |
MapIterable.flipUniqueValues()
Return the MapIterable that is obtained by flipping the direction of this map and making the associations
from value to key.
|
MapIterable<K,V> |
MapIterable.reject(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is false,
that key and value are returned in a new map.
|
MapIterable<K,V> |
MapIterable.select(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is true,
that key and value are returned in a new map.
|
MapIterable<K,V> |
MapIterable.tap(Procedure<? super V> procedure)
Executes the Procedure for each value of the map and returns
this. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableMapIterable<K,V> |
ImmutableMapIterable.newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
ImmutableMap<K,V> |
ImmutableMap.newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default void |
MutableMapIterable.putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default void |
FixedSizeMap.putAllMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default MutableOrderedMap<K,V> |
MutableOrderedMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default MutableMapIterable<K,V> |
MutableMapIterable.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default MutableMap<K,V> |
MutableMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default FixedSizeMap<K,V> |
FixedSizeMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default ConcurrentMutableMap<K,V> |
ConcurrentMutableMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ImmutableSortedMap<K,V>
An ImmutableSortedMap is different from a JCF SortedMap because it has no mutating methods.
|
interface |
MutableSortedMap<K,V>
A MutableSortedMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
interface |
SortedMapIterable<K,V>
An iterable Map whose elements are sorted.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableSortedMap<K,V> |
ImmutableSortedMap.newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
default MutableSortedMap<K,V> |
MutableSortedMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
Copyright © 2004–2023. All rights reserved.