Interface MutableStackFactory
public interface MutableStackFactory
-
Method Summary
Modifier and TypeMethodDescription<T> MutableStack<T>empty()<T> MutableStack<T>fromStream(Stream<? extends T> stream) default <T> MutableStack<T>of()Same asempty().default <T> MutableStack<T>of(T... elements) Same aswith(Object[]).default <T> MutableStack<T>Same aswithAll(Iterable).default <T> MutableStack<T>ofAllReversed(Iterable<? extends T> items) Same aswithAllReversed(Iterable).default <T> MutableStack<T>ofReversed(T... elements) Same aswithReversed(Object[]).default <T> MutableStack<T>with()Same asempty().<T> MutableStack<T>with(T... elements) <T> MutableStack<T><T> MutableStack<T>withAllReversed(Iterable<? extends T> items) <T> MutableStack<T>withReversed(T... elements)
-
Method Details
-
empty
- Since:
- 6.0
-
of
Same asempty(). -
with
Same asempty(). -
of
Same aswith(Object[]). -
with
-
ofAll
Same aswithAll(Iterable). -
withAll
-
fromStream
- Since:
- 10.0.
-
ofReversed
Same aswithReversed(Object[]). -
withReversed
-
ofAllReversed
Same aswithAllReversed(Iterable). -
withAllReversed
-