Interface MultiReaderListFactory
-
public interface MultiReaderListFactoryA factory which creates instances of typeMultiReaderList.- Since:
- 10.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> MultiReaderList<T>empty()<T> MultiReaderList<T>fromStream(Stream<? extends T> stream)default <T> MultiReaderList<T>of()Same asempty().default <T> MultiReaderList<T>of(T... items)Same aswith(Object[]).default <T> MultiReaderList<T>ofAll(Iterable<? extends T> iterable)Same aswithAll(Iterable).default <T> MultiReaderList<T>ofInitialCapacity(int capacity)Same asempty().default <T> MultiReaderList<T>with()Same asempty().<T> MultiReaderList<T>with(T... items)<T> MultiReaderList<T>withAll(Iterable<? extends T> iterable)<T> MultiReaderList<T>withInitialCapacity(int capacity)Same asempty().<T> MultiReaderList<T>withNValues(int size, Function0<? extends T> factory)
-
-
-
Method Detail
-
empty
<T> MultiReaderList<T> empty()
-
of
default <T> MultiReaderList<T> of()
Same asempty().
-
with
default <T> MultiReaderList<T> with()
Same asempty().
-
of
default <T> MultiReaderList<T> of(T... items)
Same aswith(Object[]).
-
with
<T> MultiReaderList<T> with(T... items)
-
ofInitialCapacity
default <T> MultiReaderList<T> ofInitialCapacity(int capacity)
Same asempty(). but takes in initial capacity.
-
withInitialCapacity
<T> MultiReaderList<T> withInitialCapacity(int capacity)
Same asempty(). but takes in initial capacity.
-
ofAll
default <T> MultiReaderList<T> ofAll(Iterable<? extends T> iterable)
Same aswithAll(Iterable).
-
withAll
<T> MultiReaderList<T> withAll(Iterable<? extends T> iterable)
-
fromStream
<T> MultiReaderList<T> fromStream(Stream<? extends T> stream)
-
withNValues
<T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)
-
-