MutableStackFactorypublic enum MutableStackFactoryImpl extends java.lang.Enum<MutableStackFactoryImpl> implements MutableStackFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | 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(java.lang.Iterable<? extends T> elements) |
|
<T> MutableStack<T> |
ofAllReversed(java.lang.Iterable<? extends T> items) |
|
<T> MutableStack<T> |
ofReversed(T... elements) |
|
static MutableStackFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableStackFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableStack<T> |
with() |
Same as
MutableStackFactory.empty(). |
<T> MutableStack<T> |
with(T... elements) |
|
<T> MutableStack<T> |
withAll(java.lang.Iterable<? extends T> elements) |
|
<T> MutableStack<T> |
withAllReversed(java.lang.Iterable<? extends T> items) |
|
<T> MutableStack<T> |
withReversed(T... elements) |
public static final MutableStackFactoryImpl INSTANCE
public static MutableStackFactoryImpl[] values()
for (MutableStackFactoryImpl c : MutableStackFactoryImpl.values()) System.out.println(c);
public static MutableStackFactoryImpl valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <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(java.lang.Iterable<? extends T> elements)
MutableStackFactoryofAll in interface MutableStackFactorypublic <T> MutableStack<T> withAll(java.lang.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(java.lang.Iterable<? extends T> items)
MutableStackFactoryofAllReversed in interface MutableStackFactorypublic <T> MutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
withAllReversed in interface MutableStackFactoryCopyright © 2004–2018. All rights reserved.