public class MutableStackFactoryImpl extends Object implements MutableStackFactory
| Modifier and Type | Field and Description |
|---|---|
static MutableStackFactory |
INSTANCE |
| Constructor and Description |
|---|
MutableStackFactoryImpl() |
| Modifier and Type | Method and 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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, 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–2022. All rights reserved.