MutableStackFactoryImpl
public interface MutableStackFactory
Modifier and Type | Method | Description |
---|---|---|
<T> MutableStack<T> |
empty() |
|
<T> MutableStack<T> |
fromStream(Stream<? extends T> stream) |
|
default <T> MutableStack<T> |
of() |
Same as
empty() . |
default <T> MutableStack<T> |
of(T... elements) |
Same as
with(Object[]) . |
default <T> MutableStack<T> |
ofAll(Iterable<? extends T> elements) |
Same as
withAll(Iterable) . |
default <T> MutableStack<T> |
ofAllReversed(Iterable<? extends T> items) |
Same as
withAllReversed(Iterable) . |
default <T> MutableStack<T> |
ofReversed(T... elements) |
Same as
withReversed(Object[]) . |
default <T> MutableStack<T> |
with() |
Same as
empty() . |
<T> MutableStack<T> |
with(T... elements) |
|
<T> MutableStack<T> |
withAll(Iterable<? extends T> elements) |
|
<T> MutableStack<T> |
withAllReversed(Iterable<? extends T> items) |
|
<T> MutableStack<T> |
withReversed(T... elements) |
<T> MutableStack<T> empty()
default <T> MutableStack<T> of()
empty()
.default <T> MutableStack<T> with()
empty()
.default <T> MutableStack<T> of(T... elements)
with(Object[])
.<T> MutableStack<T> with(T... elements)
default <T> MutableStack<T> ofAll(Iterable<? extends T> elements)
withAll(Iterable)
.<T> MutableStack<T> withAll(Iterable<? extends T> elements)
<T> MutableStack<T> fromStream(Stream<? extends T> stream)
default <T> MutableStack<T> ofReversed(T... elements)
withReversed(Object[])
.<T> MutableStack<T> withReversed(T... elements)
default <T> MutableStack<T> ofAllReversed(Iterable<? extends T> items)
withAllReversed(Iterable)
.<T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
Copyright © 2004–2019. All rights reserved.