| Package | Description |
|---|---|
| com.gs.collections.api.factory.stack |
This package contains Factory API for
ImmutableStack and MutableStack. |
| com.gs.collections.api.list |
This package contains interfaces for list API which enhance the performance and functionality of
List. |
| com.gs.collections.api.ordered | |
| com.gs.collections.api.partition.stack |
This package contains interfaces for
PartitionStack. |
| com.gs.collections.api.stack |
This package contains interfaces for stack API.
|
| com.gs.collections.api.stack.primitive |
This package contains mutable and immutable primitive stack API.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MutableStack<T> |
MutableStackFactory.of()
Same as
MutableStackFactory.with(). |
<T> MutableStack<T> |
MutableStackFactory.of(T... elements)
Same as
MutableStackFactory.with(Object[]). |
<T> MutableStack<T> |
MutableStackFactory.ofAll(java.lang.Iterable<? extends T> elements)
|
<T> MutableStack<T> |
MutableStackFactory.ofAllReversed(java.lang.Iterable<? extends T> items)
|
<T> MutableStack<T> |
MutableStackFactory.ofReversed(T... elements)
|
<T> MutableStack<T> |
MutableStackFactory.with() |
<T> MutableStack<T> |
MutableStackFactory.with(T... elements) |
<T> MutableStack<T> |
MutableStackFactory.withAll(java.lang.Iterable<? extends T> elements) |
<T> MutableStack<T> |
MutableStackFactory.withAllReversed(java.lang.Iterable<? extends T> items) |
<T> MutableStack<T> |
MutableStackFactory.withReversed(T... elements) |
| Modifier and Type | Method and Description |
|---|---|
MutableStack<T> |
ListIterable.toStack()
Converts the list to a mutable MutableStack implementation.
|
| Modifier and Type | Method and Description |
|---|---|
MutableStack<T> |
ReversibleIterable.toStack()
Converts the ReversibleIterable to a mutable MutableStack implementation.
|
MutableStack<T> |
SortedIterable.toStack()
Converts the SortedIterable to a mutable MutableStack implementation.
|
| Modifier and Type | Method and Description |
|---|---|
MutableStack<T> |
PartitionMutableStack.getRejected() |
MutableStack<T> |
PartitionMutableStack.getSelected() |
| Modifier and Type | Method and Description |
|---|---|
<R extends MutableStack<T>> |
MutableStack.pop(int count,
R targetStack)
Removes and returns a ListIterable of the number of elements specified by the count,
beginning with the top of the stack and puts them into a new stack.
|
| Modifier and Type | Method and Description |
|---|---|
MutableStack<T> |
MutableStack.asSynchronized() |
MutableStack<T> |
MutableStack.asUnmodifiable() |
<V> MutableStack<V> |
MutableStack.collect(Function<? super T,? extends V> function) |
<V> MutableStack<V> |
MutableStack.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableStack<V> |
MutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> MutableStack<V> |
MutableStack.flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
MutableStack<T> |
MutableStack.reject(Predicate<? super T> predicate) |
<P> MutableStack<T> |
MutableStack.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableStack<T> |
MutableStack.select(Predicate<? super T> predicate) |
<P> MutableStack<T> |
MutableStack.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableStack<T> |
StackIterable.toStack()
Converts the stack to a MutableStack implementation.
|
<S> MutableStack<Pair<T,S>> |
MutableStack.zip(java.lang.Iterable<S> that) |
MutableStack<Pair<T,java.lang.Integer>> |
MutableStack.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
<V> MutableStack<V> |
MutableBooleanStack.collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableByteStack.collect(ByteToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableCharStack.collect(CharToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableDoubleStack.collect(DoubleToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableFloatStack.collect(FloatToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableIntStack.collect(IntToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableLongStack.collect(LongToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
MutableShortStack.collect(ShortToObjectFunction<? extends V> function) |