| 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 |
|---|---|
<P> boolean |
ParallelIterable.allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> boolean |
RichIterable.allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to true for every element of the collection, or returns false.
|
<P> boolean |
ParallelIterable.anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> boolean |
RichIterable.anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to true for any element of the collection, or return false.
|
<P> int |
ParallelIterable.countWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> int |
RichIterable.countWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns the total number of elements that evaluate to true for the specified predicate.
|
<P> T |
ParallelIterable.detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> T |
RichIterable.detectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns the first element that evaluates to true for the specified predicate2 and parameter, or null if none
evaluate to true.
|
<P> T |
ParallelIterable.detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
<P> T |
RichIterable.detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function)
Returns the first element of the iterable that evaluates to true for the specified predicate2 and parameter, or
returns the value of evaluating the specified function.
|
<P> boolean |
ParallelIterable.noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> boolean |
RichIterable.noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns true if the predicate evaluates to false for every element of the collection, or return false.
|
<P> PartitionIterable<T> |
RichIterable.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter)
Filters a collection into a PartitionIterable based on the evaluation of the predicate.
|
<P> LazyIterable<T> |
LazyIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelIterable<T> |
ParallelIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> RichIterable<T> |
RichIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Similar to
RichIterable.reject(Predicate), except with an evaluation parameter for the second generic argument in Predicate2. |
<P,R extends java.util.Collection<T>> |
RichIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection)
Similar to
RichIterable.reject(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2. |
<P> LazyIterable<T> |
LazyIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelIterable<T> |
ParallelIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> RichIterable<T> |
RichIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Similar to
RichIterable.select(Predicate), except with an evaluation parameter for the second generic argument in Predicate2. |
<P,R extends java.util.Collection<T>> |
RichIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection)
Similar to
RichIterable.select(Predicate, Collection), except with an evaluation parameter for the second generic argument in Predicate2. |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionBag<T> |
Bag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionImmutableBag<T> |
ImmutableBag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableBag<T> |
MutableBag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> Bag<T> |
Bag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableBag<T> |
ImmutableBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableBag<T> |
MutableBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelBag<T> |
ParallelBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelUnsortedBag<T> |
ParallelUnsortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> UnsortedBag<T> |
UnsortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> Bag<T> |
Bag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableBag<T> |
ImmutableBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableBag<T> |
MutableBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelBag<T> |
ParallelBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelUnsortedBag<T> |
ParallelUnsortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> UnsortedBag<T> |
UnsortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableSortedBag<T> |
ImmutableSortedBag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableSortedBag<T> |
MutableSortedBag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionSortedBag<T> |
SortedBag.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSortedBag<T> |
ImmutableSortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSortedBag<T> |
MutableSortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSortedBag<T> |
ParallelSortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedBag<T> |
SortedBag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSortedBag<T> |
ImmutableSortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSortedBag<T> |
MutableSortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSortedBag<T> |
ParallelSortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedBag<T> |
SortedBag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
BiMap<K,V> |
BiMap.reject(Predicate2<? super K,? super V> predicate) |
ImmutableBiMap<K,V> |
ImmutableBiMap.reject(Predicate2<? super K,? super V> predicate) |
MutableBiMap<K,V> |
MutableBiMap.reject(Predicate2<? super K,? super V> predicate) |
BiMap<K,V> |
BiMap.select(Predicate2<? super K,? super V> predicate) |
ImmutableBiMap<K,V> |
ImmutableBiMap.select(Predicate2<? super K,? super V> predicate) |
MutableBiMap<K,V> |
MutableBiMap.select(Predicate2<? super K,? super V> predicate) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableCollection<T> |
ImmutableCollection.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableCollection<T> |
MutableCollection.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableCollection<T> |
ImmutableCollection.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableCollection<T> |
MutableCollection.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns a MutableCollection with all elements that evaluate to false for the specified predicate2 and parameter.
|
<P> void |
FixedSizeCollection.removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> void |
MutableCollection.removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter)
Removes all elements in the collection that evaluate to true for the specified predicate2 and parameter.
|
<P> Twin<MutableList<T>> |
MutableCollection.selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Filters a collection into two separate collections based on a predicate returned via a Pair.
|
<P> ImmutableCollection<T> |
ImmutableCollection.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableCollection<T> |
MutableCollection.selectWith(Predicate2<? super T,? super P> predicate,
P parameter)
Returns a MutableCollection with all elements that evaluate to true for the specified predicate2 and parameter.
|
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableList<T> |
ImmutableList.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionList<T> |
ListIterable.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableList<T> |
MutableList.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableList<T> |
ImmutableList.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ListIterable<T> |
ListIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableList<T> |
MutableList.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelListIterable<T> |
ParallelListIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableList<T> |
ImmutableList.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ListIterable<T> |
ListIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableList<T> |
MutableList.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelListIterable<T> |
ParallelListIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
Pair<K,V> |
MapIterable.detect(Predicate2<? super K,? super V> predicate)
Return the first key and value of the map for which the predicate evaluates to true when they are given
as arguments.
|
<P> PartitionImmutableCollection<V> |
ImmutableMap.partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> PartitionMutableCollection<V> |
MutableMap.partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
ImmutableMap<K,V> |
ImmutableMap.reject(Predicate2<? super K,? super V> predicate) |
MapIterable<K,V> |
MapIterable.reject(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is false,
that key and value are returned in a new map.
|
MutableMap<K,V> |
MutableMap.reject(Predicate2<? super K,? super V> predicate) |
UnsortedMapIterable<K,V> |
UnsortedMapIterable.reject(Predicate2<? super K,? super V> predicate) |
ImmutableMap<K,V> |
ImmutableMap.select(Predicate2<? super K,? super V> predicate) |
MapIterable<K,V> |
MapIterable.select(Predicate2<? super K,? super V> predicate)
For each key and value of the map the predicate is evaluated, if the result of the evaluation is true,
that key and value are returned in a new map.
|
MutableMap<K,V> |
MutableMap.select(Predicate2<? super K,? super V> predicate) |
UnsortedMapIterable<K,V> |
UnsortedMapIterable.select(Predicate2<? super K,? super V> predicate) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionMutableCollection<V> |
MutablePrimitiveObjectMap.partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> MutableCollection<V> |
MutablePrimitiveObjectMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> MutableCollection<V> |
MutablePrimitiveObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableByteObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableCharObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableDoubleObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableFloatObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableIntObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableLongObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ImmutableCollection<V> |
ImmutableShortObjectMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionMutableList<V> |
MutableSortedMap.partitionWith(Predicate2<? super V,? super P> predicate,
P parameter) |
ImmutableSortedMap<K,V> |
ImmutableSortedMap.reject(Predicate2<? super K,? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.reject(Predicate2<? super K,? super V> predicate) |
SortedMapIterable<K,V> |
SortedMapIterable.reject(Predicate2<? super K,? super V> predicate) |
<P> ImmutableList<V> |
ImmutableSortedMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> MutableList<V> |
MutableSortedMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ListIterable<V> |
SortedMapIterable.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
ImmutableSortedMap<K,V> |
ImmutableSortedMap.select(Predicate2<? super K,? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.select(Predicate2<? super K,? super V> predicate) |
SortedMapIterable<K,V> |
SortedMapIterable.select(Predicate2<? super K,? super V> predicate) |
<P> ImmutableList<V> |
ImmutableSortedMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> MutableList<V> |
MutableSortedMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<P> ListIterable<V> |
SortedMapIterable.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> ReversibleIterable<T> |
ReversibleIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedIterable<T> |
SortedIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ReversibleIterable<T> |
ReversibleIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedIterable<T> |
SortedIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableSet<T> |
ImmutableSet.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableSet<T> |
MutableSet.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionSet<T> |
SetIterable.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSet<T> |
ImmutableSet.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSet<T> |
MutableSet.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSetIterable<T> |
ParallelSetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelUnsortedSetIterable<T> |
ParallelUnsortedSetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SetIterable<T> |
SetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> UnsortedSetIterable<T> |
UnsortedSetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSet<T> |
ImmutableSet.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSet<T> |
MutableSet.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSetIterable<T> |
ParallelSetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelUnsortedSetIterable<T> |
ParallelUnsortedSetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SetIterable<T> |
SetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> UnsortedSetIterable<T> |
UnsortedSetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableSortedSet<T> |
ImmutableSortedSet.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableSortedSet<T> |
MutableSortedSet.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionSortedSet<T> |
SortedSetIterable.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSortedSet<T> |
ImmutableSortedSet.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSortedSet<T> |
MutableSortedSet.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSortedSetIterable<T> |
ParallelSortedSetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedSetIterable<T> |
SortedSetIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableSortedSet<T> |
ImmutableSortedSet.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableSortedSet<T> |
MutableSortedSet.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ParallelSortedSetIterable<T> |
ParallelSortedSetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> SortedSetIterable<T> |
SortedSetIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
| Modifier and Type | Method and Description |
|---|---|
<P> PartitionImmutableStack<T> |
ImmutableStack.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionMutableStack<T> |
MutableStack.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> PartitionStack<T> |
StackIterable.partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableStack<T> |
ImmutableStack.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableStack<T> |
MutableStack.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> StackIterable<T> |
StackIterable.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> ImmutableStack<T> |
ImmutableStack.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> MutableStack<T> |
MutableStack.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> StackIterable<T> |
StackIterable.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |