Serializable
, Comparable<MultiReaderMutableListFactory>
, MultiReaderListFactory
public enum MultiReaderMutableListFactory extends Enum<MultiReaderMutableListFactory> implements MultiReaderListFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | 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) |
Same as
MultiReaderListFactory.empty() . |
<T> MultiReaderList<T> |
withNValues(int size,
Function0<? extends T> factory) |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
of, of, ofAll, ofInitialCapacity, with
public 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 MultiReaderListFactory
public <T> MultiReaderList<T> with(T... items)
with
in interface MultiReaderListFactory
public <T> MultiReaderList<T> withInitialCapacity(int capacity)
MultiReaderListFactory
MultiReaderListFactory.empty()
. but takes in initial capacity.withInitialCapacity
in interface MultiReaderListFactory
public <T> MultiReaderList<T> withAll(Iterable<? extends T> iterable)
withAll
in interface MultiReaderListFactory
public <T> MultiReaderList<T> fromStream(Stream<? extends T> stream)
fromStream
in interface MultiReaderListFactory
public <T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)
withNValues
in interface MultiReaderListFactory
Copyright © 2004–2019. All rights reserved.