Top Methods
org.eclipse.collections.api.factory.stack

public Interface MutableStackFactory

Imports
java.util.stream.Stream, org.eclipse.collections.api.stack.MutableStack

Method Summary

Modifier and TypeMethod and Description
public <T> MutableStack<T>
public <T> MutableStack<T>
fromStream(Stream<? extends T> stream)

public default <T> MutableStack<T>
of()

Same as empty().

public default <T> MutableStack<T>
of(T... elements)

Same as with(Object[]).

public default <T> MutableStack<T>
ofAll(Iterable<? extends T> elements)

Same as withAll(Iterable).

public default <T> MutableStack<T>
ofAllReversed(Iterable<? extends T> items)

Same as withAllReversed(Iterable).

public default <T> MutableStack<T>
ofReversed(T... elements)

Same as withReversed(Object[]).

public default <T> MutableStack<T>
with()

Same as empty().

public <T> MutableStack<T>
with(T... elements)

public <T> MutableStack<T>
withAll(Iterable<? extends T> elements)

public <T> MutableStack<T>
withAllReversed(Iterable<? extends T> items)

public <T> MutableStack<T>
withReversed(T... elements)

Method Detail

emptyback to summary
public <T> MutableStack<T> empty()
Since
6.0
fromStreamback to summary
public <T> MutableStack<T> fromStream(Stream<? extends T> stream)
Since
10.0.
ofback to summary
public default <T> MutableStack<T> of()

Same as empty().

ofback to summary
public default <T> MutableStack<T> of(T... elements)

Same as with(Object[]).

ofAllback to summary
public default <T> MutableStack<T> ofAll(Iterable<? extends T> elements)

Same as withAll(Iterable).

ofAllReversedback to summary
public default <T> MutableStack<T> ofAllReversed(Iterable<? extends T> items)

Same as withAllReversed(Iterable).

ofReversedback to summary
public default <T> MutableStack<T> ofReversed(T... elements)

Same as withReversed(Object[]).

withback to summary
public default <T> MutableStack<T> with()

Same as empty().

withback to summary
public <T> MutableStack<T> with(T... elements)
withAllback to summary
public <T> MutableStack<T> withAll(Iterable<? extends T> elements)
withAllReversedback to summary
public <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withReversedback to summary
public <T> MutableStack<T> withReversed(T... elements)