public enum ImmutableStackFactoryImpl extends Enum<ImmutableStackFactoryImpl> implements ImmutableStackFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableStack<T> |
empty() |
<T> ImmutableStack<T> |
of() |
<T> ImmutableStack<T> |
of(T... elements) |
<T> ImmutableStack<T> |
of(T element) |
<T> ImmutableStack<T> |
ofAll(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
ofAllReversed(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
ofReversed(T... elements) |
static ImmutableStackFactoryImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImmutableStackFactoryImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> ImmutableStack<T> |
with() |
<T> ImmutableStack<T> |
with(T... elements) |
<T> ImmutableStack<T> |
with(T element) |
<T> ImmutableStack<T> |
withAll(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
withAllReversed(Iterable<? extends T> items) |
<T> ImmutableStack<T> |
withReversed(T... elements) |
public static final ImmutableStackFactoryImpl INSTANCE
public static ImmutableStackFactoryImpl[] values()
for (ImmutableStackFactoryImpl c : ImmutableStackFactoryImpl.values()) System.out.println(c);
public static ImmutableStackFactoryImpl 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> ImmutableStack<T> empty()
empty in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of()
of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with()
with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of(T element)
of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with(T element)
with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of(T... elements)
of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with(T... elements)
with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofAll(Iterable<? extends T> items)
ofAll in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAll(Iterable<? extends T> items)
withAll in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofReversed(T... elements)
ofReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withReversed(T... elements)
withReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofAllReversed(Iterable<? extends T> items)
ofAllReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed in interface ImmutableStackFactoryCopyright © 2004–2017. All rights reserved.