@Immutable public final class MutableListFactoryImpl extends Object implements MutableListFactory
Constructor and Description |
---|
MutableListFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> MutableList<T> |
of()
Same as
MutableListFactory.with() . |
<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() |
<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> of()
MutableListFactory
MutableListFactory.with()
.of
in interface MutableListFactory
public <T> MutableList<T> with()
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–2019. All rights reserved.