| Package | Description |
|---|---|
| org.eclipse.collections.api |
This package contains interfaces for Eclipse Collections API.
|
| org.eclipse.collections.api.bimap |
This package contains interfaces for BiMap API.
|
| org.eclipse.collections.api.collection | |
| org.eclipse.collections.api.factory.bimap | |
| 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.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
default <NK,NV> ImmutableMap<NK,NV> |
RichIterable.toImmutableMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to an ImmutableMap implementation using the specified key and value functions.
|
| Modifier and Type | Method and Description |
|---|---|
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> 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> 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> ImmutableMap<K,V> |
ImmutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <V> ImmutableMap<V,T> |
ImmutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> ImmutableBiMap<K,V> |
ImmutableBiMapFactory.ofAll(ImmutableMap<K,V> immutableMap) |
<K,V> ImmutableBiMap<K,V> |
ImmutableBiMapFactory.withAll(ImmutableMap<K,V> immutableMap) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.empty() |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of()
Same as
ImmutableMapFactory.empty(). |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of(K key,
V value)
|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of(K key1,
V value1,
K key2,
V value2)
|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.ofAll(Map<K,V> map)
Same as
ImmutableMapFactory.withAll(Map). |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.ofMap(Map<K,V> map) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with()
Same as
ImmutableMapFactory.empty(). |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with(K key,
V value) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with(K key1,
V value1,
K key2,
V value2) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.withAll(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key,
V value)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.ofAll(Map<K,V> map)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.ofMap(Map<K,V> map) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key,
V value) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.withAll(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
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> 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> ImmutableMap<KK,VV> |
ImmutableMap.aggregateInPlaceBy(Function<? super V,? extends KK> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> ImmutableMap<K,R> |
ImmutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
ImmutableMap<V,K> |
ImmutableMap.flipUniqueValues() |
default <V1> ImmutableMap<V1,V> |
ImmutableMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
ImmutableMap<K,V> |
ImmutableMap.newWithAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
ImmutableMap<K,V> |
ImmutableMap.newWithAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
ImmutableMap<K,V> |
ImmutableMap.newWithKeyValue(K key,
V value) |
ImmutableMap<K,V> |
ImmutableMap.newWithMap(Map<? extends K,? extends V> map) |
ImmutableMap<K,V> |
ImmutableMap.newWithMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
ImmutableMap<K,V> |
ImmutableMap.newWithoutAllKeys(Iterable<? extends K> keys) |
ImmutableMap<K,V> |
ImmutableMap.newWithoutKey(K key) |
ImmutableMap<K,V> |
ImmutableMap.reject(Predicate2<? super K,? super V> predicate) |
ImmutableMap<K,V> |
ImmutableMap.select(Predicate2<? super K,? super V> predicate) |
ImmutableMap<K,V> |
ImmutableMap.tap(Procedure<? super V> procedure) |
ImmutableMap<K,V> |
UnsortedMapIterable.toImmutable()
Converts the UnsortedMapIterable to an immutable implementation.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
default <K,VV> ImmutableMap<K,VV> |
ImmutablePrimitiveObjectMap.aggregateInPlaceBy(Function<? super V,? extends K> groupBy,
Function0<? extends VV> zeroValueFactory,
Procedure2<? super VV,? super V> mutatingAggregator) |
default <VV> ImmutableMap<VV,V> |
ImmutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| 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) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
default <VV> ImmutableMap<VV,V> |
ImmutableSortedMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
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> ImmutableMap<K,V> |
ImmutableStack.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
default <V> ImmutableMap<V,T> |
ImmutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |
Copyright © 2004–2023. All rights reserved.