| Package | Description |
|---|---|
| org.eclipse.collections.api.factory.stack |
This package contains Factory API for
ImmutableStack and MutableStack. |
| 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> ImmutableStack<T> |
ImmutableStackFactory.empty() |
default <T> ImmutableStack<T> |
ImmutableStackFactory.fromStream(Stream<? extends T> stream) |
<T> ImmutableStack<T> |
ImmutableStackFactory.of()
Same as
ImmutableStackFactory.empty(). |
<T> ImmutableStack<T> |
ImmutableStackFactory.of(T... elements)
Same as
ImmutableStackFactory.with(Object[]). |
<T> ImmutableStack<T> |
ImmutableStackFactory.of(T element)
Same as
ImmutableStackFactory.with(Object). |
<T> ImmutableStack<T> |
ImmutableStackFactory.ofAll(Iterable<? extends T> items)
|
<T> ImmutableStack<T> |
ImmutableStackFactory.ofAllReversed(Iterable<? extends T> items)
|
<T> ImmutableStack<T> |
ImmutableStackFactory.ofReversed(T... elements)
|
<T> ImmutableStack<T> |
ImmutableStackFactory.with()
Same as
ImmutableStackFactory.empty(). |
<T> ImmutableStack<T> |
ImmutableStackFactory.with(T... elements) |
<T> ImmutableStack<T> |
ImmutableStackFactory.with(T element) |
<T> ImmutableStack<T> |
ImmutableStackFactory.withAll(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
ImmutableStackFactory.withAllReversed(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
ImmutableStackFactory.withReversed(T... elements) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableStack<T> |
PartitionImmutableStack.getRejected() |
ImmutableStack<T> |
PartitionImmutableStack.getSelected() |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableStack<V> |
ImmutableStack.collect(Function<? super T,? extends V> function) |
<V> ImmutableStack<V> |
ImmutableStack.collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> ImmutableStack<V> |
ImmutableStack.collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
default <V> ImmutableStack<V> |
ImmutableStack.collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function) |
ImmutableStack<T> |
ImmutableStack.distinct() |
ImmutableStack<T> |
ImmutableStack.dropWhile(Predicate<? super T> predicate) |
<V> ImmutableStack<V> |
ImmutableStack.flatCollect(Function<? super T,? extends Iterable<V>> function) |
default <P,V> ImmutableStack<V> |
ImmutableStack.flatCollectWith(Function2<? super T,? super P,? extends Iterable<V>> function,
P parameter) |
ImmutableStack<T> |
ImmutableStack.pop() |
ImmutableStack<T> |
ImmutableStack.pop(int count) |
ImmutableStack<T> |
ImmutableStack.push(T item) |
ImmutableStack<T> |
ImmutableStack.reject(Predicate<? super T> predicate) |
<P> ImmutableStack<T> |
ImmutableStack.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
ImmutableStack<T> |
ImmutableStack.select(Predicate<? super T> predicate) |
<S> ImmutableStack<S> |
ImmutableStack.selectInstancesOf(Class<S> clazz) |
<P> ImmutableStack<T> |
ImmutableStack.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
ImmutableStack<T> |
ImmutableStack.takeWhile(Predicate<? super T> predicate) |
ImmutableStack<T> |
ImmutableStack.tap(Procedure<? super T> procedure) |
ImmutableStack<T> |
StackIterable.toImmutable()
Converts the StackIterable to an immutable implementation.
|
<S> ImmutableStack<Pair<T,S>> |
ImmutableStack.zip(Iterable<S> that) |
ImmutableStack<Pair<T,Integer>> |
ImmutableStack.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
default Pair<T,ImmutableStack<T>> |
ImmutableStack.peekAndPop() |
default Pair<ListIterable<T>,ImmutableStack<T>> |
ImmutableStack.peekAndPop(int count) |
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableStack<V> |
ImmutableBooleanStack.collect(BooleanToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableByteStack.collect(ByteToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableCharStack.collect(CharToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableDoubleStack.collect(DoubleToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableFloatStack.collect(FloatToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableIntStack.collect(IntToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableLongStack.collect(LongToObjectFunction<? extends V> function) |
<V> ImmutableStack<V> |
ImmutableShortStack.collect(ShortToObjectFunction<? extends V> function) |
default <V> ImmutableStack<V> |
ImmutableBooleanStack.collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableByteStack.collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableCharStack.collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableDoubleStack.collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableFloatStack.collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableIntStack.collectWithIndex(IntIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableLongStack.collectWithIndex(LongIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default <V> ImmutableStack<V> |
ImmutableShortStack.collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new ImmutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
Copyright © 2004–2023. All rights reserved.