| Package | Description |
|---|---|
| com.gs.collections.api |
This package contains interfaces for GS Collections API.
|
| 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.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| com.gs.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| com.gs.collections.api.multimap |
This package contains interfaces for
Multimap. |
| com.gs.collections.api.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
<NK,NV> MutableMap<NK,NV> |
ParallelIterable.toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<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.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
MutableSortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an MutableMap that's backed by a LinkedHashMap.
|
<K,V> MutableMap<K,V> |
MutableSortedBag.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator)
Can return an MutableMap that's backed by a LinkedHashMap.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableBiMap<K,V>
A
BiMap whose contents can be altered after initialization. |
| Modifier and Type | Method and Description |
|---|---|
<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) |
<K,V> MutableMap<K,V> |
MutableCollection.aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
<V> MutableMap<V,T> |
MutableCollection.groupByUniqueKey(Function<? super T,? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableMap<K,V> |
MutableMapFactory.of()
Same as
MutableMapFactory.with(). |
<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.with() |
<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) |
| Modifier and Type | Method and Description |
|---|---|
<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 |
|---|---|
<K2,V2> MutableMap<K2,V2> |
MutableMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> MutableMap<K2,V2> |
MutableMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
MutableMap<K,V> |
MutableMap.asSynchronized()
Returns a synchronized (thread-safe) map backed by the specified map.
|
MutableMap<K,V> |
MutableMap.asUnmodifiable()
Returns an unmodifiable view of this map.
|
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(java.lang.Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
collection to this. |
<R> MutableMap<K,R> |
MutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
MutableMap<V,K> |
MutableMap.flipUniqueValues() |
<V1> MutableMap<V1,V> |
MutableMap.groupByUniqueKey(Function<? super V,? extends V1> function) |
MutableMap<K,V> |
MutableMap.newEmpty()
Creates a new instance of the same type, using the default capacity and growth parameters.
|
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> |
ImmutableMap.toMap() |
MutableMap<K,V> |
MutableMap.withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs)
Convenience var-args version of withAllKeyValues
|
MutableMap<K,V> |
MutableMap.withAllKeyValues(java.lang.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.
|
MutableMap<K,V> |
MutableMap.withKeyValue(K key,
V value)
This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing
elements.
|
MutableMap<K,V> |
MutableMap.withoutAllKeys(java.lang.Iterable<? extends K> keys)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing
elements.
|
MutableMap<K,V> |
MutableMap.withoutKey(K key)
This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing
elements.
|
| Modifier and Type | Method and Description |
|---|---|
<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) |
<VV> MutableMap<VV,V> |
MutablePrimitiveObjectMap.groupByUniqueKey(Function<? super V,? extends VV> function) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.aggregateBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Function2<? super V2,? super V,? extends V2> nonMutatingAggregator) |
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.aggregateInPlaceBy(Function<? super V,? extends K2> groupBy,
Function0<? extends V2> zeroValueFactory,
Procedure2<? super V2,? super V> mutatingAggregator) |
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<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 java.util.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 |
|---|---|
<V> MutableMap<V,T> |
MutableStack.groupByUniqueKey(Function<? super T,? extends V> function) |