MutableStackFactorypublic class MutableStackFactoryImpl extends Object implements MutableStackFactory
| Modifier and Type | Field | Description |
|---|---|---|
static MutableStackFactory |
INSTANCE |
| Constructor | Description |
|---|---|
MutableStackFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> MutableStack<T> |
empty() |
|
<T> MutableStack<T> |
fromStream(Stream<? extends T> stream) |
|
<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) |
of, of, ofAll, ofAllReversed, ofReversed, withpublic static final MutableStackFactory INSTANCE
public <T> MutableStack<T> empty()
empty in interface MutableStackFactorypublic <T> MutableStack<T> with(T... elements)
with in interface MutableStackFactorypublic <T> MutableStack<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableStackFactorypublic <T> MutableStack<T> fromStream(Stream<? extends T> stream)
fromStream in interface MutableStackFactorypublic <T> MutableStack<T> withReversed(T... elements)
withReversed in interface MutableStackFactorypublic <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed in interface MutableStackFactoryCopyright © 2004–2019. All rights reserved.