| Package | Description |
|---|---|
| org.eclipse.collections.api.factory.stack |
This package contains Factory API for
ImmutableStack and MutableStack. |
| org.eclipse.collections.api.ordered | |
| org.eclipse.collections.api.partition.stack |
This package contains interfaces for
PartitionStack. |
| org.eclipse.collections.api.stack |
This package contains interfaces for stack API.
|
| org.eclipse.collections.api.stack.primitive |
This package contains mutable and immutable primitive stack API.
|
| Modifier and Type | Method and Description |
|---|---|
<T> MutableStack<T> |
MutableStackFactory.empty() |
<T> MutableStack<T> |
MutableStackFactory.fromStream(Stream<? extends T> stream) |
default <T> MutableStack<T> |
MutableStackFactory.of()
Same as
MutableStackFactory.empty(). |
default <T> MutableStack<T> |
MutableStackFactory.of(T... elements)
Same as
MutableStackFactory.with(Object[]). |
default <T> MutableStack<T> |
MutableStackFactory.ofAll(Iterable<? extends T> elements)
|
default <T> MutableStack<T> |
MutableStackFactory.ofAllReversed(Iterable<? extends T> items)
|
default <T> MutableStack<T> |
MutableStackFactory.ofReversed(T... elements)
|
default <T> MutableStack<T> |
MutableStackFactory.with()
Same as
MutableStackFactory.empty(). |
<T> MutableStack<T> |
MutableStackFactory.with(T... elements) |
<T> MutableStack<T> |
MutableStackFactory.withAll(Iterable<? extends T> elements) |
<T> MutableStack<T> |
MutableStackFactory.withAllReversed(Iterable<? extends T> items) |
<T> MutableStack<T> |
MutableStackFactory.withReversed(T... elements) |
| Modifier and Type | Method and Description |
|---|---|
default MutableStack<T> |
OrderedIterable.toStack()
Converts the OrderedIterable 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) |
default <V> MutableStack<V> |
MutableStack.collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
MutableStack<T> |
MutableStack.distinct() |
MutableStack<T> |
MutableStack.dropWhile(Predicate<? super T> predicate) |
<V> MutableStack<V> |
MutableStack.flatCollect(Function<? super T,? extends Iterable<V>> function) |
default <P,V> MutableStack<V> |
MutableStack.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
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) |
<S> MutableStack<S> |
MutableStack.selectInstancesOf(Class<S> clazz) |
<P> MutableStack<T> |
MutableStack.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableStack<T> |
MutableStack.takeWhile(Predicate<? super T> predicate) |
MutableStack<T> |
MutableStack.tap(Procedure<? super T> procedure) |
default MutableStack<T> |
StackIterable.toStack()
Converts the stack to a MutableStack implementation.
|
<S> MutableStack<Pair<T,S>> |
MutableStack.zip(Iterable<S> that) |
MutableStack<Pair<T,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) |
default <V> MutableStack<V> |
MutableBooleanStack.collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableByteStack.collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableCharStack.collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableDoubleStack.collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableFloatStack.collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableIntStack.collectWithIndex(IntIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableLongStack.collectWithIndex(LongIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> MutableStack<V> |
MutableShortStack.collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
Copyright © 2004–2021. All rights reserved.