| Package | Description |
|---|---|
| com.gs.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
| com.gs.collections.api.bimap |
This package contains interfaces for BiMap API.
|
| com.gs.collections.api.collection | |
| com.gs.collections.api.factory.map |
This package contains factory API for creating instances of type
MapIterable. |
| com.gs.collections.api.factory.map.strategy |
This package contains factory API for creating instances of maps with user defined
HashingStrategys. |
| com.gs.collections.api.map |
This package contains interfaces for map API which enhance the performance and functionality of
Map |
| com.gs.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| com.gs.collections.api.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> ImmutableMap<K,V> |
ImmutableSortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an ImmutableMap that's backed by a LinkedHashMap.
|
<K,V> ImmutableMap<K,V> |
ImmutableSortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an ImmutableMap that's backed by a LinkedHashMap.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ImmutableBiMap<K,V>
A
BiMap whose contents cannot be altered after initialization. |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<K,V> ImmutableMap<K,V> |
ImmutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> ImmutableMap<V,T> |
ImmutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.of()
Same as
ImmutableMapFactory.with(). |
<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(java.util.Map<K,V> map)
|
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.ofMap(java.util.Map<K,V> map) |
<K,V> ImmutableMap<K,V> |
ImmutableMapFactory.with() |
<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(java.util.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(java.util.Map<K,V> map)
|
<K,V> ImmutableMap<K,V> |
ImmutableHashingStrategyMapFactory.ofMap(java.util.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(java.util.Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? 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() |
<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(java.lang.Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
ImmutableMap<K,V> |
ImmutableMap.newWithKeyValue(K key,
V value) |
ImmutableMap<K,V> |
ImmutableMap.newWithoutAllKeys(java.lang.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> |
MutableMap.toImmutable()
Returns an immutable copy of this map.
|
ImmutableMap<K,V> |
UnsortedMapIterable.toImmutable()
Converts the UnsortedMapIterable to an immutable implementation.
|
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
<K2,V2> ImmutableMap<K2,V2> |
ImmutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
ImmutableMap<V,K> |
ImmutableSortedMap.flipUniqueValues() |
<VV> ImmutableMap<VV,V> |
ImmutableSortedMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableMap<V,T> |
ImmutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |