MutableStackFactory
public class MutableStackFactoryImpl extends java.lang.Object implements MutableStackFactory
Modifier and Type | Field | Description |
---|---|---|
static MutableStackFactory |
INSTANCE |
Constructor | Description |
---|---|
MutableStackFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
<T> MutableStack<T> |
empty() |
|
<T> MutableStack<T> |
fromStream(java.util.stream.Stream<? extends T> stream) |
|
<T> MutableStack<T> |
with(T... elements) |
|
<T> MutableStack<T> |
withAll(java.lang.Iterable<? extends T> elements) |
|
<T> MutableStack<T> |
withAllReversed(java.lang.Iterable<? extends T> items) |
|
<T> MutableStack<T> |
withReversed(T... elements) |
of, of, ofAll, ofAllReversed, ofReversed, with
public static final MutableStackFactory INSTANCE
public <T> MutableStack<T> empty()
empty
in interface MutableStackFactory
public <T> MutableStack<T> with(T... elements)
with
in interface MutableStackFactory
public <T> MutableStack<T> withAll(java.lang.Iterable<? extends T> elements)
withAll
in interface MutableStackFactory
public <T> MutableStack<T> fromStream(java.util.stream.Stream<? extends T> stream)
fromStream
in interface MutableStackFactory
public <T> MutableStack<T> withReversed(T... elements)
withReversed
in interface MutableStackFactory
public <T> MutableStack<T> withAllReversed(java.lang.Iterable<? extends T> items)
withAllReversed
in interface MutableStackFactory
Copyright © 2004–2020. All rights reserved.