public enum MutableStackFactoryImpl extends Enum<MutableStackFactoryImpl> implements MutableStackFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableStack<T> |
empty() |
<T> MutableStack<T> |
of() |
<T> MutableStack<T> |
of(T... elements) |
<T> MutableStack<T> |
ofAll(Iterable<? extends T> elements) |
<T> MutableStack<T> |
ofAllReversed(Iterable<? extends T> items) |
<T> MutableStack<T> |
ofReversed(T... elements) |
static MutableStackFactoryImpl |
valueOf(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() |
<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 static final MutableStackFactoryImpl INSTANCE
public static MutableStackFactoryImpl[] values()
for (MutableStackFactoryImpl c : MutableStackFactoryImpl.values()) System.out.println(c);
public static MutableStackFactoryImpl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> MutableStack<T> empty()
empty in interface MutableStackFactorypublic <T> MutableStack<T> of()
of in interface MutableStackFactorypublic <T> MutableStack<T> with()
with in interface MutableStackFactorypublic <T> MutableStack<T> of(T... elements)
of in interface MutableStackFactorypublic <T> MutableStack<T> with(T... elements)
with in interface MutableStackFactorypublic <T> MutableStack<T> ofAll(Iterable<? extends T> elements)
ofAll in interface MutableStackFactorypublic <T> MutableStack<T> withAll(Iterable<? extends T> elements)
withAll in interface MutableStackFactorypublic <T> MutableStack<T> ofReversed(T... elements)
ofReversed in interface MutableStackFactorypublic <T> MutableStack<T> withReversed(T... elements)
withReversed in interface MutableStackFactorypublic <T> MutableStack<T> ofAllReversed(Iterable<? extends T> items)
ofAllReversed in interface MutableStackFactorypublic <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed in interface MutableStackFactoryCopyright © 2004–2017. All rights reserved.