Interface ImmutableStackFactory
- All Known Implementing Classes:
ImmutableStackFactoryImpl
public interface ImmutableStackFactory
-
Method Summary
Modifier and TypeMethodDescription<T> ImmutableStack<T>
empty()
default <T> ImmutableStack<T>
fromStream
(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>
Same aswithAll(Iterable)
.<T> ImmutableStack<T>
ofAllReversed
(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>
<T> ImmutableStack<T>
withAllReversed
(Iterable<? extends T> items) <T> ImmutableStack<T>
withReversed
(T... elements)
-
Method Details
-
empty
- Since:
- 6.0
-
of
Same asempty()
. -
with
Same asempty()
. -
of
Same aswith(Object)
. -
with
-
of
Same aswith(Object[])
. -
with
-
ofAll
Same aswithAll(Iterable)
. -
withAll
-
fromStream
- Since:
- 10.0.
-
ofReversed
Same aswithReversed(Object[])
. -
withReversed
-
ofAllReversed
Same aswithAllReversed(Iterable)
. -
withAllReversed
-