Interface ImmutableStackFactory
-
- All Known Implementing Classes:
ImmutableStackFactoryImpl
public interface ImmutableStackFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> ImmutableStack<T>
empty()
default <T> ImmutableStack<T>
fromStream(java.util.stream.Stream<? extends T> stream)
<T> ImmutableStack<T>
of()
Same asempty()
.<T> ImmutableStack<T>
of(T element)
Same aswith(Object)
.<T> ImmutableStack<T>
of(T... elements)
Same aswith(Object[])
.<T> ImmutableStack<T>
ofAll(java.lang.Iterable<? extends T> items)
Same aswithAll(Iterable)
.<T> ImmutableStack<T>
ofAllReversed(java.lang.Iterable<? extends T> items)
Same aswithAllReversed(Iterable)
.<T> ImmutableStack<T>
ofReversed(T... elements)
Same aswithReversed(Object[])
.<T> ImmutableStack<T>
with()
Same asempty()
.<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)
-
-
-
Method Detail
-
empty
<T> ImmutableStack<T> empty()
- Since:
- 6.0
-
of
<T> ImmutableStack<T> of()
Same asempty()
.
-
with
<T> ImmutableStack<T> with()
Same asempty()
.
-
of
<T> ImmutableStack<T> of(T element)
Same aswith(Object)
.
-
with
<T> ImmutableStack<T> with(T element)
-
of
<T> ImmutableStack<T> of(T... elements)
Same aswith(Object[])
.
-
with
<T> ImmutableStack<T> with(T... elements)
-
ofAll
<T> ImmutableStack<T> ofAll(java.lang.Iterable<? extends T> items)
Same aswithAll(Iterable)
.
-
withAll
<T> ImmutableStack<T> withAll(java.lang.Iterable<? extends T> items)
-
fromStream
default <T> ImmutableStack<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Since:
- 10.0.
-
ofReversed
<T> ImmutableStack<T> ofReversed(T... elements)
Same aswithReversed(Object[])
.
-
withReversed
<T> ImmutableStack<T> withReversed(T... elements)
-
ofAllReversed
<T> ImmutableStack<T> ofAllReversed(java.lang.Iterable<? extends T> items)
Same aswithAllReversed(Iterable)
.
-
withAllReversed
<T> ImmutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
-
-