| Package | Description |
|---|---|
| com.gs.collections.api |
This package contains interfaces for GS Collections API.
|
| com.gs.collections.api.bag |
This package contains interfaces for Bag 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.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| 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.ordered | |
| com.gs.collections.api.set |
This package contains interfaces for set API which enhance the performance and functionality of
Set. |
| com.gs.collections.api.set.sorted |
This package contains interfaces for sorted set API.
|
| com.gs.collections.api.stack |
This package contains interfaces for stack API.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> MapIterable<K,V> |
ParallelIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
RichIterable.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function.
|
<P,V> LazyIterable<V> |
LazyIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelIterable<V> |
ParallelIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> RichIterable<V> |
RichIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter)
Same as collect with a
Function2 and specified parameter which is passed to the block
|
<P,V,R extends java.util.Collection<V>> |
RichIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection)
Same as collectWith but with a targetCollection parameter to gather the results.
|
<IV> IV |
RichIterable.injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
Returns the final result of evaluating function using each element of the iterable and the previous evaluation
result as the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
<P,V> ImmutableBag<V> |
ImmutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableBag<V> |
MutableBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelUnsortedBag<V> |
ParallelUnsortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> UnsortedBag<V> |
UnsortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| 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> 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> MapIterable<K,V> |
SortedBag.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator)
Can return an MapIterable that's backed by a LinkedHashMap.
|
<P,V> ImmutableList<V> |
ImmutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableList<V> |
MutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelListIterable<V> |
ParallelSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ListIterable<V> |
SortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2> BiMap<K2,V2> |
BiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> ImmutableBiMap<K2,V2> |
ImmutableBiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableBiMap<K2,V2> |
MutableBiMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> BiMap<K,R> |
BiMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> ImmutableBiMap<K,R> |
ImmutableBiMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableBiMap<K,R> |
MutableBiMap.collectValues(Function2<? super K,? super V,? extends R> function) |
| 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> MutableMap<K,V> |
MutableCollection.aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<P,V> ImmutableCollection<V> |
ImmutableCollection.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableCollection<V> |
MutableCollection.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ImmutableList<V> |
ImmutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ListIterable<V> |
ListIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableList<V> |
MutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelListIterable<V> |
ParallelListIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| 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> 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> ImmutableMap<K2,V2> |
ImmutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MapIterable<K2,V2> |
MapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function)
For each key and value of the map the function is evaluated.
|
<K2,V2> MutableMap<K2,V2> |
MutableMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> UnsortedMapIterable<K2,V2> |
UnsortedMapIterable.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> ImmutableMap<K,R> |
ImmutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MapIterable<K,R> |
MapIterable.collectValues(Function2<? super K,? super V,? extends R> function)
For each key and value of the map the function is evaluated.
|
<R> MutableMap<K,R> |
MutableMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> UnsortedMapIterable<K,R> |
UnsortedMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<P> V |
MutableMap.updateValueWith(K key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableMap.updateValue(Object, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
| 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) |
<P,VV> MutableCollection<VV> |
MutablePrimitiveObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableByteObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableCharObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableDoubleObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableFloatObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableIntObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableLongObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> ImmutableCollection<VV> |
ImmutableShortObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableByteObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableCharObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableDoubleObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableFloatObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableIntObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableLongObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableCollection<VV> |
MutableShortObjectMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P> V |
MutableByteObjectMap.updateValueWith(byte key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableByteObjectMap.updateValue(byte, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableCharObjectMap.updateValueWith(char key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableCharObjectMap.updateValue(char, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableDoubleObjectMap.updateValueWith(double key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableDoubleObjectMap.updateValue(double, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableFloatObjectMap.updateValueWith(float key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableFloatObjectMap.updateValue(float, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableIntObjectMap.updateValueWith(int key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableIntObjectMap.updateValue(int, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableLongObjectMap.updateValueWith(long key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableLongObjectMap.updateValue(long, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
<P> V |
MutableShortObjectMap.updateValueWith(short key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter)
Same as
MutableShortObjectMap.updateValue(short, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
| 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> 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> ImmutableMap<K2,V2> |
ImmutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<K2,V2> MutableMap<K2,V2> |
MutableSortedMap.collect(Function2<? super K,? super V,Pair<K2,V2>> function) |
<R> ImmutableSortedMap<K,R> |
ImmutableSortedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> MutableSortedMap<K,R> |
MutableSortedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
<R> SortedMapIterable<K,R> |
SortedMapIterable.collectValues(Function2<? super K,? super V,? extends R> function) |
<P,VV> ImmutableList<VV> |
ImmutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<P,VV> MutableList<VV> |
MutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ReversibleIterable<V> |
ReversibleIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ImmutableSet<V> |
ImmutableSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableSet<V> |
MutableSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> UnsortedSetIterable<V> |
UnsortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ImmutableList<V> |
ImmutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableList<V> |
MutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ParallelListIterable<V> |
ParallelSortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> ListIterable<V> |
SortedSetIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P,V> ImmutableStack<V> |
ImmutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> MutableStack<V> |
MutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<P,V> StackIterable<V> |
StackIterable.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |