MutableStackFactory
public class MutableStackFactoryImpl extends 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(Stream<? extends T> stream) |
|
<T> MutableStack<T> |
with(T... elements) |
|
<T> MutableStack<T> |
withAll(Iterable<? extends T> elements) |
|
<T> MutableStack<T> |
withAllReversed(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(Iterable<? extends T> elements)
withAll
in interface MutableStackFactory
public <T> MutableStack<T> fromStream(Stream<? extends T> stream)
fromStream
in interface MutableStackFactory
public <T> MutableStack<T> withReversed(T... elements)
withReversed
in interface MutableStackFactory
public <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed
in interface MutableStackFactory
Copyright © 2004–2019. All rights reserved.