MutableListFactorypublic enum MultiReaderMutableListFactory extends java.lang.Enum<MultiReaderMutableListFactory> 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). |
<T> MutableList<T> |
ofInitialCapacity(int capacity) |
Same as
MutableListFactory.empty(). |
static MultiReaderMutableListFactory |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MultiReaderMutableListFactory[] |
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> |
withInitialCapacity(int capacity) |
Same as
MutableListFactory.empty(). |
<T> MutableList<T> |
withNValues(int size,
Function0<T> factory) |
public static final MultiReaderMutableListFactory INSTANCE
public static MultiReaderMutableListFactory[] values()
for (MultiReaderMutableListFactory c : MultiReaderMutableListFactory.values()) System.out.println(c);
public static MultiReaderMutableListFactory 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> ofInitialCapacity(int capacity)
MutableListFactoryMutableListFactory.empty(). but takes in initial capacity.ofInitialCapacity in interface MutableListFactorypublic <T> MutableList<T> withInitialCapacity(int capacity)
MutableListFactoryMutableListFactory.empty(). but takes in initial capacity.withInitialCapacity 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–2018. All rights reserved.