@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 MutableListFactorypublic <T> MutableList<T> of()
MutableListFactoryMutableListFactory.empty().of in interface MutableListFactorypublic <T> MutableList<T> with()
MutableListFactoryMutableListFactory.empty().with in interface MutableListFactorypublic <T> MutableList<T> of(T... items)
MutableListFactoryMutableListFactory.with(Object[]).of in interface MutableListFactorypublic <T> MutableList<T> with(T... items)
with in interface MutableListFactorypublic <T> MutableList<T> ofAll(Iterable<? extends T> iterable)
MutableListFactoryMutableListFactory.withAll(Iterable).ofAll in interface MutableListFactorypublic <T> MutableList<T> withAll(Iterable<? extends T> iterable)
withAll in interface MutableListFactorypublic <T> MutableList<T> withNValues(int size, Function0<T> factory)
withNValues in interface MutableListFactoryCopyright © 2004–2016. All rights reserved.