@Immutable public final class MutableListFactoryImpl extends Object implements MutableListFactory
Constructor and Description |
---|
MutableListFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> MutableList<T> |
empty() |
<T> MutableList<T> |
of()
Same as
MutableListFactory.empty() . |
<T> MutableList<T> |
of(T... items)
Same as
MutableListFactory.with(Object[]) . |
<T> MutableList<T> |
ofAll(Iterable<? extends T> iterable)
Same as
MutableListFactory.withAll(Iterable) . |
<T> MutableList<T> |
with()
Same as
MutableListFactory.empty() . |
<T> MutableList<T> |
with(T... items) |
<T> MutableList<T> |
withAll(Iterable<? extends T> iterable) |
<T> MutableList<T> |
withNValues(int size,
Function0<T> factory) |
public <T> MutableList<T> empty()
empty
in interface MutableListFactory
public <T> MutableList<T> of()
MutableListFactory
MutableListFactory.empty()
.of
in interface MutableListFactory
public <T> MutableList<T> with()
MutableListFactory
MutableListFactory.empty()
.with
in interface MutableListFactory
public <T> MutableList<T> of(T... items)
MutableListFactory
MutableListFactory.with(Object[])
.of
in interface MutableListFactory
public <T> MutableList<T> with(T... items)
with
in interface MutableListFactory
public <T> MutableList<T> ofAll(Iterable<? extends T> iterable)
MutableListFactory
MutableListFactory.withAll(Iterable)
.ofAll
in interface MutableListFactory
public <T> MutableList<T> withAll(Iterable<? extends T> iterable)
withAll
in interface MutableListFactory
public <T> MutableList<T> withNValues(int size, Function0<T> factory)
withNValues
in interface MutableListFactory
Copyright © 2004–2016. All rights reserved.