public enum MultiReaderMutableListFactory extends Enum<MultiReaderMutableListFactory> implements MultiReaderListFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> MultiReaderList<T> |
empty() |
<T> MultiReaderList<T> |
fromStream(Stream<? extends T> stream) |
static MultiReaderMutableListFactory |
valueOf(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> MultiReaderList<T> |
with(T... items) |
<T> MultiReaderList<T> |
withAll(Iterable<? extends T> iterable) |
<T> MultiReaderList<T> |
withInitialCapacity(int capacity) |
<T> MultiReaderList<T> |
withNValues(int size,
Function0<? extends T> factory) |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfof, of, ofAll, ofInitialCapacity, withpublic static final MultiReaderMutableListFactory INSTANCE
public static MultiReaderMutableListFactory[] values()
for (MultiReaderMutableListFactory c : MultiReaderMutableListFactory.values()) System.out.println(c);
public static MultiReaderMutableListFactory 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> MultiReaderList<T> empty()
empty in interface MultiReaderListFactorypublic <T> MultiReaderList<T> with(T... items)
with in interface MultiReaderListFactorypublic <T> MultiReaderList<T> withInitialCapacity(int capacity)
withInitialCapacity in interface MultiReaderListFactorypublic <T> MultiReaderList<T> withAll(Iterable<? extends T> iterable)
withAll in interface MultiReaderListFactorypublic <T> MultiReaderList<T> fromStream(Stream<? extends T> stream)
fromStream in interface MultiReaderListFactorypublic <T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)
withNValues in interface MultiReaderListFactoryCopyright © 2004–2020. All rights reserved.