Top Description Methods
org.eclipse.collections.api.factory.list

public Interface MultiReaderListFactory

Imports
java.util.stream.Stream, org.eclipse.collections.api.block.function.Function0, org.eclipse.collections.api.list.MultiReaderList

A factory which creates instances of type MultiReaderList.
Since
10.0.

Method Summary

Modifier and TypeMethod and Description
public <T> MultiReaderList<T>
public <T> MultiReaderList<T>
fromStream(Stream<? extends T> stream)

public default <T> MultiReaderList<T>
of()

Same as empty().

public default <T> MultiReaderList<T>
of(T... items)

Same as with(Object[]).

public default <T> MultiReaderList<T>
ofAll(Iterable<? extends T> iterable)

Same as withAll(Iterable).

public default <T> MultiReaderList<T>
ofInitialCapacity(int capacity)

Same as empty().

public default <T> MultiReaderList<T>
with()

Same as empty().

public <T> MultiReaderList<T>
with(T... items)

public <T> MultiReaderList<T>
withAll(Iterable<? extends T> iterable)

public <T> MultiReaderList<T>
withInitialCapacity(int capacity)

Same as empty().

public <T> MultiReaderList<T>
withNValues(int size, Function0<? extends T> factory)

Method Detail

emptyback to summary
public <T> MultiReaderList<T> empty()
fromStreamback to summary
public <T> MultiReaderList<T> fromStream(Stream<? extends T> stream)
ofback to summary
public default <T> MultiReaderList<T> of()

Same as empty().

ofback to summary
public default <T> MultiReaderList<T> of(T... items)

Same as with(Object[]).

ofAllback to summary
public default <T> MultiReaderList<T> ofAll(Iterable<? extends T> iterable)

Same as withAll(Iterable).

ofInitialCapacityback to summary
public default <T> MultiReaderList<T> ofInitialCapacity(int capacity)

Same as empty(). but takes in initial capacity.

withback to summary
public default <T> MultiReaderList<T> with()

Same as empty().

withback to summary
public <T> MultiReaderList<T> with(T... items)
withAllback to summary
public <T> MultiReaderList<T> withAll(Iterable<? extends T> iterable)
withInitialCapacityback to summary
public <T> MultiReaderList<T> withInitialCapacity(int capacity)

Same as empty(). but takes in initial capacity.

withNValuesback to summary
public <T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)