@Immutable public final class MutableStackFactoryImpl extends Object implements MutableStackFactory
Constructor and Description |
---|
MutableStackFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> MutableStack<T> |
empty() |
<T> MutableStack<T> |
of()
Same as
MutableStackFactory.empty() . |
<T> MutableStack<T> |
of(T... elements)
Same as
MutableStackFactory.with(Object[]) . |
<T> MutableStack<T> |
ofAll(Iterable<? extends T> elements)
|
<T> MutableStack<T> |
ofAllReversed(Iterable<? extends T> items)
|
<T> MutableStack<T> |
ofReversed(T... elements)
|
<T> MutableStack<T> |
with()
Same as
MutableStackFactory.empty() . |
<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) |
public <T> MutableStack<T> empty()
empty
in interface MutableStackFactory
public <T> MutableStack<T> of()
MutableStackFactory
MutableStackFactory.empty()
.of
in interface MutableStackFactory
public <T> MutableStack<T> with()
MutableStackFactory
MutableStackFactory.empty()
.with
in interface MutableStackFactory
public <T> MutableStack<T> of(T... elements)
MutableStackFactory
MutableStackFactory.with(Object[])
.of
in interface MutableStackFactory
public <T> MutableStack<T> with(T... elements)
with
in interface MutableStackFactory
public <T> MutableStack<T> ofAll(Iterable<? extends T> elements)
MutableStackFactory
ofAll
in interface MutableStackFactory
public <T> MutableStack<T> withAll(Iterable<? extends T> elements)
withAll
in interface MutableStackFactory
public <T> MutableStack<T> ofReversed(T... elements)
MutableStackFactory
ofReversed
in interface MutableStackFactory
public <T> MutableStack<T> withReversed(T... elements)
withReversed
in interface MutableStackFactory
public <T> MutableStack<T> ofAllReversed(Iterable<? extends T> items)
MutableStackFactory
ofAllReversed
in interface MutableStackFactory
public <T> MutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed
in interface MutableStackFactory
Copyright © 2004–2016. All rights reserved.