Interface MultiReaderListFactory
- All Known Implementing Classes:
MultiReaderMutableListFactory
public interface MultiReaderListFactory
A factory which creates instances of type
MultiReaderList
.- Since:
- 10.0.
-
Method Summary
Modifier and TypeMethodDescription<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>
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>
<T> MultiReaderList<T>
withInitialCapacity
(int capacity) Same asempty()
.<T> MultiReaderList<T>
withNValues
(int size, Function0<? extends T> factory)
-
Method Details
-
empty
-
of
Same asempty()
. -
with
Same asempty()
. -
of
Same aswith(Object[])
. -
with
-
ofInitialCapacity
Same asempty()
. but takes in initial capacity. -
withInitialCapacity
Same asempty()
. but takes in initial capacity. -
ofAll
Same aswithAll(Iterable)
. -
withAll
-
fromStream
-
withNValues
-