public interface ImmutableStackFactory
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableStack<T> |
empty() |
default <T> ImmutableStack<T> |
fromStream(Stream<? extends T> stream) |
<T> ImmutableStack<T> |
of()
Same as
empty(). |
<T> ImmutableStack<T> |
of(T... elements)
Same as
with(Object[]). |
<T> ImmutableStack<T> |
of(T element)
Same as
with(Object). |
<T> ImmutableStack<T> |
ofAll(Iterable<? extends T> items)
Same as
withAll(Iterable). |
<T> ImmutableStack<T> |
ofAllReversed(Iterable<? extends T> items)
Same as
withAllReversed(Iterable). |
<T> ImmutableStack<T> |
ofReversed(T... elements)
Same as
withReversed(Object[]). |
<T> ImmutableStack<T> |
with()
Same as
empty(). |
<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) |
<T> ImmutableStack<T> empty()
<T> ImmutableStack<T> of()
empty().<T> ImmutableStack<T> with()
empty().<T> ImmutableStack<T> of(T element)
with(Object).<T> ImmutableStack<T> with(T element)
<T> ImmutableStack<T> of(T... elements)
with(Object[]).<T> ImmutableStack<T> with(T... elements)
<T> ImmutableStack<T> ofAll(Iterable<? extends T> items)
withAll(Iterable).<T> ImmutableStack<T> withAll(Iterable<? extends T> items)
default <T> ImmutableStack<T> fromStream(Stream<? extends T> stream)
<T> ImmutableStack<T> ofReversed(T... elements)
withReversed(Object[]).<T> ImmutableStack<T> withReversed(T... elements)
<T> ImmutableStack<T> ofAllReversed(Iterable<? extends T> items)
withAllReversed(Iterable).<T> ImmutableStack<T> withAllReversed(Iterable<? extends T> items)
Copyright © 2004–2022. All rights reserved.