MutableStackFactory
public 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 MutableStackFactory
public <T> MutableStack<T> of()
MutableStackFactory
MutableStackFactory.empty()
.of
in interface MutableStackFactory
public <T> MutableStack<T> with()
MutableStackFactory
MutableStackFactory.empty()
.with
in interface MutableStackFactory
public <T> MutableStack<T> of(T... elements)
MutableStackFactory
MutableStackFactory.with(Object[])
.of
in interface MutableStackFactory
public <T> MutableStack<T> with(T... elements)
with
in interface MutableStackFactory
public <T> MutableStack<T> ofAll(java.lang.Iterable<? extends T> elements)
MutableStackFactory
ofAll
in interface MutableStackFactory
public <T> MutableStack<T> withAll(java.lang.Iterable<? extends T> elements)
withAll
in interface MutableStackFactory
public <T> MutableStack<T> ofReversed(T... elements)
MutableStackFactory
ofReversed
in interface MutableStackFactory
public <T> MutableStack<T> withReversed(T... elements)
withReversed
in interface MutableStackFactory
public <T> MutableStack<T> ofAllReversed(java.lang.Iterable<? extends T> items)
MutableStackFactory
ofAllReversed
in interface MutableStackFactory
public <T> MutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
withAllReversed
in interface MutableStackFactory
Copyright © 2004–2018. All rights reserved.