| 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.map |
This package contains factory API for creating instances of type
MapIterable. |
| org.eclipse.collections.api.factory.map.strategy |
This package contains factory API for creating instances of maps with user defined
HashingStrategys. |
| 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 |
|---|---|
<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.
|
<NK,NV> MutableMap<NK,NV> |
ParallelIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
| Modifier and Type | Method and Description |
|---|---|
MutableMap<T,Integer> |
MutableBag.toMapOfItemToCount() |
| 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 <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) |
| 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> MutableMap<K,V> |
MutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <V> MutableMap<V,T> |
MutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
MutableMapFactory.empty() |
<K,V> MutableMap<K,V> |
MutableMapFactory.of()
Same as
MutableMapFactory.empty(). |
<K,V> MutableMap<K,V> |
MutableMapFactory.of(K key,
V value)
|
<K,V> MutableMap<K,V> |
MutableMapFactory.of(K key1,
V value1,
K key2,
V value2)
|
<K,V> MutableMap<K,V> |
MutableMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> MutableMap<K,V> |
MutableMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> MutableMap<K,V> |
MutableMapFactory.ofInitialCapacity(int capacity)
Same as
MutableMapFactory.empty(). |
<K,V> MutableMap<K,V> |
MutableMapFactory.ofMap(Map<? extends K,? extends V> map) |
<K,V> MutableMap<K,V> |
MutableMapFactory.ofMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
<K,V> MutableMap<K,V> |
MutableMapFactory.with()
Same as
MutableMapFactory.empty(). |
<K,V> MutableMap<K,V> |
MutableMapFactory.with(K key,
V value) |
<K,V> MutableMap<K,V> |
MutableMapFactory.with(K key1,
V value1,
K key2,
V value2) |
<K,V> MutableMap<K,V> |
MutableMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> MutableMap<K,V> |
MutableMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
<K,V> MutableMap<K,V> |
MutableMapFactory.withInitialCapacity(int capacity)
Same as
MutableMapFactory.empty(). |
<K,V> MutableMap<K,V> |
MutableMapFactory.withMap(Map<? extends K,? extends V> map) |
<K,V> MutableMap<K,V> |
MutableMapFactory.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
| Modifier and Type | Method and Description |
|---|---|
default <K,V,T> MutableMap<K,V> |
MutableHashingStrategyMapFactory.fromFunction(Function<? super K,? extends T> function)
Since 11.1
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy)
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key,
V value)
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2)
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy) |
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key,
V value) |
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2) |
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> MutableMap<K,V> |
MutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
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 <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) |
MutableMap<K,V> |
MutableMap.asSynchronized() |
MutableMap<K,V> |
MutableMap.asUnmodifiable() |
MutableMap<K,V> |
MutableMap.clone() |
<K2,V2> MutableMap<K2,V2> |
MutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> 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 from
iterable to this. |
<R> MutableMap<K,R> |
MutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
MutableMap<V,K> |
MutableMap.flipUniqueValues() |
default <V1> MutableMap<V1,V> |
MutableMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
MutableMap<K,V> |
MutableMap.newEmpty() |
MutableMap<K,V> |
MutableMap.reject(Predicate2<? super K,? super V> predicate) |
MutableMap<K,V> |
MutableMap.select(Predicate2<? super K,? super V> predicate) |
MutableMap<K,V> |
MutableMap.tap(Procedure<? super V> procedure) |
MutableMap<K,V> |
ImmutableMap.toMap() |
MutableMap<K,V> |
MutableMap.withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
MutableMap<K,V> |
MutableMap.withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
MutableMap<K,V> |
MutableMap.withKeyValue(K key,
V value) |
default MutableMap<K,V> |
MutableMap.withMap(Map<? extends K,? extends V> map) |
default MutableMap<K,V> |
MutableMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
MutableMap<K,V> |
MutableMap.withoutAllKeys(Iterable<? extends K> keys) |
MutableMap<K,V> |
MutableMap.withoutKey(K key) |
| 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) |
<K,VV> MutableMap<K,VV> |
MutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
default <VV> MutableMap<VV,V> |
MutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
default <VV> MutableMap<VV,V> |
MutableSortedMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
MutableMap<K,RichIterable<V>> |
Multimap.toMap()
Returns a new
MutableMap of keys from this Multimap to the mapped values as a RichIterable. |
<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> MutableMap<K,V> |
MutableStack.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <V> MutableMap<V,T> |
MutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |
Copyright © 2004–2022. All rights reserved.