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

public Interface ImmutableStackFactory

Imports
java.util.stream.Stream, org.eclipse.collections.api.factory.Stacks, org.eclipse.collections.api.stack.ImmutableStack

Method Summary

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

public <T> ImmutableStack<T>
of()

Same as empty().

public <T> ImmutableStack<T>
of(T element)

Same as with(Object).

public <T> ImmutableStack<T>
of(T... elements)

Same as with(Object[]).

public <T> ImmutableStack<T>
ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

public <T> ImmutableStack<T>
ofAllReversed(Iterable<? extends T> items)

Same as withAllReversed(Iterable).

public <T> ImmutableStack<T>
ofReversed(T... elements)

Same as withReversed(Object[]).

public <T> ImmutableStack<T>
with()

Same as empty().

public <T> ImmutableStack<T>
with(T element)

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

public <T> ImmutableStack<T>
withAll(Iterable<? extends T> items)

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

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

Method Detail

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

Same as empty().

ofback to summary
public <T> ImmutableStack<T> of(T element)

Same as with(Object).

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

Same as with(Object[]).

ofAllback to summary
public <T> ImmutableStack<T> ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

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

Same as withAllReversed(Iterable).

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

Same as withReversed(Object[]).

withback to summary
public <T> ImmutableStack<T> with()

Same as empty().

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