public class ImmutableStackFactoryImpl extends Object implements ImmutableStackFactory
| Modifier and Type | Field and Description |
|---|---|
static ImmutableStackFactory |
INSTANCE |
| Constructor and Description |
|---|
ImmutableStackFactoryImpl() |
| 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) |
<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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromStreampublic static final ImmutableStackFactory INSTANCE
public <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–2022. All rights reserved.