MutableListFactorypublic enum MutableListFactoryImpl extends java.lang.Enum<MutableListFactoryImpl> implements MutableListFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | 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(java.lang.Iterable<? extends T> iterable) |
Same as
MutableListFactory.withAll(Iterable). |
static MutableListFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableListFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableList<T> |
with() |
Same as
MutableListFactory.empty(). |
<T> MutableList<T> |
with(T... items) |
|
<T> MutableList<T> |
withAll(java.lang.Iterable<? extends T> iterable) |
|
<T> MutableList<T> |
withNValues(int size,
Function0<T> factory) |
public static final MutableListFactoryImpl INSTANCE
public static MutableListFactoryImpl[] values()
for (MutableListFactoryImpl c : MutableListFactoryImpl.values()) System.out.println(c);
public static MutableListFactoryImpl valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <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(java.lang.Iterable<? extends T> iterable)
MutableListFactoryMutableListFactory.withAll(Iterable).ofAll in interface MutableListFactorypublic <T> MutableList<T> withAll(java.lang.Iterable<? extends T> iterable)
withAll in interface MutableListFactorypublic <T> MutableList<T> withNValues(int size, Function0<T> factory)
withNValues in interface MutableListFactoryCopyright © 2004–2017. All rights reserved.