@Immutable public final class MutableStackFactoryImpl extends Object implements MutableStackFactory
| Constructor and Description |
|---|
MutableStackFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableStack<T> |
empty() |
<T> MutableStack<T> |
of()
Same as
MutableStackFactory.empty(). |
<T> MutableStack<T> |
of(T... elements)
Same as
MutableStackFactory.with(Object[]). |
<T> MutableStack<T> |
ofAll(Iterable<? extends T> elements)
|
<T> MutableStack<T> |
ofAllReversed(Iterable<? extends T> items)
|
<T> MutableStack<T> |
ofReversed(T... elements)
|
<T> MutableStack<T> |
with()
Same as
MutableStackFactory.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) |
public <T> MutableStack<T> empty()
empty in interface MutableStackFactorypublic <T> MutableStack<T> of()
MutableStackFactoryMutableStackFactory.empty().of in interface MutableStackFactorypublic <T> MutableStack<T> with()
MutableStackFactoryMutableStackFactory.empty().with in interface MutableStackFactorypublic <T> MutableStack<T> of(T... elements)
MutableStackFactoryMutableStackFactory.with(Object[]).of in interface MutableStackFactorypublic <T> MutableStack<T> with(T... elements)
with in interface MutableStackFactorypublic <T> MutableStack<T> ofAll(Iterable<? extends T> elements)
MutableStackFactoryofAll in interface MutableStackFactorypublic <T> MutableStack<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableStackFactorypublic <T> MutableStack<T> ofReversed(T... elements)
MutableStackFactoryofReversed in interface MutableStackFactorypublic <T> MutableStack<T> withReversed(T... elements)
withReversed in interface MutableStackFactorypublic <T> MutableStack<T> ofAllReversed(Iterable<? extends T> items)
MutableStackFactoryofAllReversed in interface MutableStackFactorypublic <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed in interface MutableStackFactoryCopyright © 2004–2016. All rights reserved.