ImmutableStackFactory
public class ImmutableStackFactoryImpl extends Object implements ImmutableStackFactory
Modifier and Type | Field | Description |
---|---|---|
static ImmutableStackFactory |
INSTANCE |
Constructor | Description |
---|---|
ImmutableStackFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
<T> ImmutableStack<T> |
empty() |
|
<T> ImmutableStack<T> |
of() |
Same as
ImmutableStackFactory.empty() . |
<T> ImmutableStack<T> |
of(T element) |
Same as
ImmutableStackFactory.with(Object) . |
<T> ImmutableStack<T> |
of(T... elements) |
Same as
ImmutableStackFactory.with(Object[]) . |
<T> ImmutableStack<T> |
ofAll(Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
ofAllReversed(Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
ofReversed(T... elements) |
|
<T> ImmutableStack<T> |
with() |
Same as
ImmutableStackFactory.empty() . |
<T> ImmutableStack<T> |
with(T element) |
|
<T> ImmutableStack<T> |
with(T... elements) |
|
<T> ImmutableStack<T> |
withAll(Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
withAllReversed(Iterable<? extends T> items) |
|
<T> ImmutableStack<T> |
withReversed(T... elements) |
fromStream
public static final ImmutableStackFactory INSTANCE
public <T> ImmutableStack<T> empty()
empty
in interface ImmutableStackFactory
public <T> ImmutableStack<T> of()
ImmutableStackFactory
ImmutableStackFactory.empty()
.of
in interface ImmutableStackFactory
public <T> ImmutableStack<T> with()
ImmutableStackFactory
ImmutableStackFactory.empty()
.with
in interface ImmutableStackFactory
public <T> ImmutableStack<T> of(T element)
ImmutableStackFactory
ImmutableStackFactory.with(Object)
.of
in interface ImmutableStackFactory
public <T> ImmutableStack<T> with(T element)
with
in interface ImmutableStackFactory
public <T> ImmutableStack<T> of(T... elements)
ImmutableStackFactory
ImmutableStackFactory.with(Object[])
.of
in interface ImmutableStackFactory
public <T> ImmutableStack<T> with(T... elements)
with
in interface ImmutableStackFactory
public <T> ImmutableStack<T> ofAll(Iterable<? extends T> items)
ImmutableStackFactory
ofAll
in interface ImmutableStackFactory
public <T> ImmutableStack<T> withAll(Iterable<? extends T> items)
withAll
in interface ImmutableStackFactory
public <T> ImmutableStack<T> ofReversed(T... elements)
ImmutableStackFactory
ofReversed
in interface ImmutableStackFactory
public <T> ImmutableStack<T> withReversed(T... elements)
withReversed
in interface ImmutableStackFactory
public <T> ImmutableStack<T> ofAllReversed(Iterable<? extends T> items)
ImmutableStackFactory
ofAllReversed
in interface ImmutableStackFactory
public <T> ImmutableStack<T> withAllReversed(Iterable<? extends T> items)
withAllReversed
in interface ImmutableStackFactory
Copyright © 2004–2019. All rights reserved.