ImmutableStackFactorypublic class ImmutableStackFactoryImpl extends java.lang.Object implements ImmutableStackFactory
| Modifier and Type | Field | Description |
|---|---|---|
static ImmutableStackFactory |
INSTANCE |
| Constructor | Description |
|---|---|
ImmutableStackFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> ImmutableStack<T> |
empty() |
|
<T> ImmutableStack<T> |
of() |
Same as
ImmutableStackFactory.empty(). |
<T> ImmutableStack<T> |
of(T element) |
Same as
ImmutableStackFactory.with(Object). |
<T> ImmutableStack<T> |
of(T... elements) |
Same as
ImmutableStackFactory.with(Object[]). |
<T> ImmutableStack<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
ofAllReversed(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
ofReversed(T... elements) |
|
<T> ImmutableStack<T> |
with() |
Same as
ImmutableStackFactory.empty(). |
<T> ImmutableStack<T> |
with(T element) |
|
<T> ImmutableStack<T> |
with(T... elements) |
|
<T> ImmutableStack<T> |
withAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
withAllReversed(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
withReversed(T... elements) |
fromStreampublic static final ImmutableStackFactory INSTANCE
public <T> ImmutableStack<T> empty()
empty in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of()
ImmutableStackFactoryImmutableStackFactory.empty().of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with()
ImmutableStackFactoryImmutableStackFactory.empty().with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of(T element)
ImmutableStackFactoryImmutableStackFactory.with(Object).of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with(T element)
with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> of(T... elements)
ImmutableStackFactoryImmutableStackFactory.with(Object[]).of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with(T... elements)
with in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableStackFactoryofAll in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofReversed(T... elements)
ImmutableStackFactoryofReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withReversed(T... elements)
withReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> ofAllReversed(java.lang.Iterable<? extends T> items)
ImmutableStackFactoryofAllReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
withAllReversed in interface ImmutableStackFactoryCopyright © 2004–2020. All rights reserved.