| 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.collection | |
| com.gs.collections.api.factory.list |
This package contains factory API for creating instances of type
ListIterable. |
| com.gs.collections.api.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| com.gs.collections.api.list.primitive |
This package contains mutable and immutable primitive list API.
|
| com.gs.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| com.gs.collections.api.multimap.list |
This package contains interfaces for
ListMultimap. |
| com.gs.collections.api.partition.list |
This package contains interfaces for
PartitionList. |
| com.gs.collections.api.set.sorted |
This package contains interfaces for sorted set API.
|
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
ParallelIterable.toList() |
MutableList<T> |
RichIterable.toList()
Converts the collection to a MutableList implementation.
|
MutableList<T> |
ParallelIterable.toSortedList() |
MutableList<T> |
RichIterable.toSortedList()
Converts the collection to a MutableList implementation and sorts it using the natural order of the elements.
|
MutableList<T> |
ParallelIterable.toSortedList(java.util.Comparator<? super T> comparator) |
MutableList<T> |
RichIterable.toSortedList(java.util.Comparator<? super T> comparator)
Converts the collection to a MutableList implementation and sorts it using the specified comparator.
|
<V extends java.lang.Comparable<? super V>> |
ParallelIterable.toSortedListBy(Function<? super T,? extends V> function) |
<V extends java.lang.Comparable<? super V>> |
RichIterable.toSortedListBy(Function<? super T,? extends V> function)
Converts the collection to a MutableList implementation and sorts it based on the natural order of the
attribute returned by
function. |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableSortedBag.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedBag.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableSortedBag.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> MutableList<V> |
MutableSortedBag.flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
<S> MutableList<Pair<T,S>> |
MutableSortedBag.zip(java.lang.Iterable<S> that) |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MutableList<T> |
MutableListFactory.of()
Same as
MutableListFactory.with(). |
<T> MutableList<T> |
MutableListFactory.of(T... items)
Same as
MutableListFactory.with(Object[]). |
<T> MutableList<T> |
MutableListFactory.ofAll(java.lang.Iterable<? extends T> iterable)
Same as
MutableListFactory.withAll(Iterable). |
<T> MutableList<T> |
MutableListFactory.with() |
<T> MutableList<T> |
MutableListFactory.with(T... items) |
<T> MutableList<T> |
MutableListFactory.withAll(java.lang.Iterable<? extends T> iterable) |
<T> MutableList<T> |
MutableListFactory.withNValues(int size,
Function0<T> factory) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
FixedSizeList<T>
A FixedSizeList is a list that may be mutated, but cannot grow or shrink in size.
|
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
MutableList.asSynchronized() |
MutableList<T> |
MutableList.asUnmodifiable()
Returns an unmodifable view of the list.
|
MutableList<T> |
MutableList.clone() |
<V> MutableList<V> |
MutableList.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableList.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableList.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
MutableList<T> |
MutableList.distinct() |
MutableList<T> |
MutableList.dropWhile(Predicate<? super T> predicate) |
<V> MutableList<V> |
MutableList.flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
MutableList<T> |
MutableList.newEmpty() |
MutableList<T> |
MutableList.reject(Predicate<? super T> predicate) |
<P> MutableList<T> |
MutableList.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<T> |
MutableList.reverseThis()
Mutates the current list by reversing its order and returns the current list as a result
|
MutableList<T> |
MutableList.select(Predicate<? super T> predicate) |
<S> MutableList<S> |
MutableList.selectInstancesOf(java.lang.Class<S> clazz) |
<P> MutableList<T> |
MutableList.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<T> |
MutableList.sortThis()
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
MutableList<T> |
MutableList.sortThis(java.util.Comparator<? super T> comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
<V extends java.lang.Comparable<? super V>> |
MutableList.sortThisBy(Function<? super T,? extends V> function)
Sorts the internal data structure of this list based on the natural order of the attribute returned by
function. |
MutableList<T> |
MutableList.subList(int fromIndex,
int toIndex) |
MutableList<T> |
MutableList.takeWhile(Predicate<? super T> predicate) |
MutableList<T> |
MutableList.toReversed()
Returns a new MutableList in reverse order
|
MutableList<T> |
MutableList.with(T element) |
MutableList<T> |
MutableList.withAll(java.lang.Iterable<? extends T> elements) |
MutableList<T> |
MutableList.without(T element) |
MutableList<T> |
MutableList.withoutAll(java.lang.Iterable<? extends T> elements) |
<S> MutableList<Pair<T,S>> |
MutableList.zip(java.lang.Iterable<S> that) |
MutableList<Pair<T,java.lang.Integer>> |
MutableList.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableBooleanList.collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableByteList.collect(ByteToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableCharList.collect(CharToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableDoubleList.collect(DoubleToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableFloatList.collect(FloatToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableIntList.collect(IntToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableLongList.collect(LongToObjectFunction<? extends V> function) |
<V> MutableList<V> |
MutableShortList.collect(ShortToObjectFunction<? extends V> function) |
| Modifier and Type | Method and Description |
|---|---|
<R> MutableList<R> |
MutableSortedMap.collect(Function<? super V,? extends R> function) |
<R> MutableList<R> |
MutableSortedMap.collectIf(Predicate<? super V> predicate,
Function<? super V,? extends R> function) |
<P,VV> MutableList<VV> |
MutableSortedMap.collectWith(Function2<? super V,? super P,? extends VV> function,
P parameter) |
<R> MutableList<R> |
MutableSortedMap.flatCollect(Function<? super V,? extends java.lang.Iterable<R>> function) |
MutableList<V> |
MutableSortedMap.reject(Predicate<? super V> predicate) |
<P> MutableList<V> |
MutableSortedMap.rejectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
MutableList<V> |
MutableSortedMap.select(Predicate<? super V> predicate) |
<S> MutableList<S> |
MutableSortedMap.selectInstancesOf(java.lang.Class<S> clazz) |
<P> MutableList<V> |
MutableSortedMap.selectWith(Predicate2<? super V,? super P> predicate,
P parameter) |
<S> MutableList<Pair<V,S>> |
MutableSortedMap.zip(java.lang.Iterable<S> that) |
MutableList<Pair<V,java.lang.Integer>> |
MutableSortedMap.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
MutableList<V> |
MutableListMultimap.get(K key) |
MutableList<V> |
MutableListMultimap.removeAll(java.lang.Object key) |
MutableList<V> |
MutableListMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values) |
| Modifier and Type | Method and Description |
|---|---|
MutableList<T> |
PartitionMutableList.getRejected() |
MutableList<T> |
PartitionMutableList.getSelected() |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableList<V> |
MutableSortedSet.collect(Function<? super T,? extends V> function) |
<V> MutableList<V> |
MutableSortedSet.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableList<V> |
MutableSortedSet.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> MutableList<V> |
MutableSortedSet.flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
<S> MutableList<Pair<T,S>> |
MutableSortedSet.zip(java.lang.Iterable<S> that) |