| 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.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,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.
|
<V,R extends MutableMapIterable<V,T>> |
RichIterable.groupByUniqueKey(Function<? super T,? extends V> function,
R target)
Same as
RichIterable.groupByUniqueKey(Function), except that the results are gathered into the specified target
map. |
| 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 |
|---|---|
MutableMapIterable<T,Integer> |
MutableBagIterable.toMapOfItemToCount() |
MutableMapIterable<T,Integer> |
ImmutableBagIterable.toMapOfItemToCount() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableBiMap<K,V>
A
BiMap whose contents can be altered after initialization. |
| 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 |
MutableMap<K,V>
A MutableMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
interface |
MutableOrderedMap<K,V> |
| Modifier and Type | Method and Description |
|---|---|
MutableMapIterable<K,V> |
MutableMapIterable.asSynchronized()
Returns a synchronized wrapper backed by this map.
|
MutableMapIterable<K,V> |
MutableMapIterable.asUnmodifiable()
Returns an unmodifiable view of this map.
|
<K2,V2> MutableMapIterable<K2,V2> |
MutableMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> MutableMapIterable<K,R> |
MutableMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
MutableMapIterable<V,K> |
MutableMapIterable.flipUniqueValues() |
<V1> MutableMapIterable<V1,V> |
MutableMapIterable.groupByUniqueKey(Function<? super V,? extends V1> function) |
MutableMapIterable<K,V> |
MutableMapIterable.newEmpty()
Creates a new instance of the same type, using the default capacity and growth parameters.
|
MutableMapIterable<K,V> |
MutableMapIterable.reject(Predicate2<? super K,? super V> predicate) |
MutableMapIterable<K,V> |
MutableMapIterable.select(Predicate2<? super K,? super V> predicate) |
MutableMapIterable<K,V> |
MutableMapIterable.tap(Procedure<? super V> procedure) |
MutableMapIterable<K,V> |
MutableMapIterable.withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
Convenience var-args version of withAllKeyValues
|
MutableMapIterable<K,V> |
MutableMapIterable.withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues)
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing
elements.
|
MutableMapIterable<K,V> |
MutableMapIterable.withKeyValue(K key,
V value)
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing
elements.
|
default MutableMapIterable<K,V> |
MutableMapIterable.withMap(Map<? extends K,? extends V> map)
Similar to
Map.putAll(Map), but returns this instead of void |
MutableMapIterable<K,V> |
MutableMapIterable.withoutAllKeys(Iterable<? extends K> keys)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing
elements.
|
MutableMapIterable<K,V> |
MutableMapIterable.withoutKey(K key)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing
elements.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableSortedMap<K,V>
A MutableSortedMap is similar to a JCF Map but adds additional useful internal iterator methods.
|
Copyright © 2004–2020. All rights reserved.