public enum MutableListFactoryImpl extends Enum<MutableListFactoryImpl> implements MutableListFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableList<T> |
empty() |
<T> MutableList<T> |
of() |
<T> MutableList<T> |
of(T... items) |
<T> MutableList<T> |
ofAll(Iterable<? extends T> iterable) |
static MutableListFactoryImpl |
valueOf(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() |
<T> MutableList<T> |
with(T... items) |
<T> MutableList<T> |
withAll(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> MutableList<T> empty()
empty in interface MutableListFactorypublic <T> MutableList<T> of()
of in interface MutableListFactorypublic <T> MutableList<T> with()
with in interface MutableListFactorypublic <T> MutableList<T> of(T... items)
of in interface MutableListFactorypublic <T> MutableList<T> with(T... items)
with in interface MutableListFactorypublic <T> MutableList<T> ofAll(Iterable<? extends T> 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–2017. All rights reserved.