public class ImmutableStackFactoryImpl extends Object implements ImmutableStackFactory
| Constructor and Description |
|---|
ImmutableStackFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableStack<T> |
of()
Same as
ImmutableStackFactory.with(). |
<T> ImmutableStack<T> |
of(T... elements)
Same as
ImmutableStackFactory.with(Object[]). |
<T> ImmutableStack<T> |
of(T element)
Same as
ImmutableStackFactory.with(Object). |
<T> ImmutableStack<T> |
ofAll(Iterable<? extends T> items)
|
<T> ImmutableStack<T> |
ofAllReversed(Iterable<? extends T> items)
|
<T> ImmutableStack<T> |
ofReversed(T... elements)
|
<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 <T> ImmutableStack<T> of()
ImmutableStackFactoryImmutableStackFactory.with().of in interface ImmutableStackFactorypublic <T> ImmutableStack<T> with()
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(Iterable<? extends T> items)
ImmutableStackFactoryofAll in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAll(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(Iterable<? extends T> items)
ImmutableStackFactoryofAllReversed in interface ImmutableStackFactorypublic <T> ImmutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed in interface ImmutableStackFactoryCopyright © 2004–2017. All rights reserved.