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

public Interface MultiReaderBagFactory

Imports
java.util.stream.Stream, org.eclipse.collections.api.bag.MultiReaderBag

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

Method Summary

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

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

Same as empty().

public default <T> MultiReaderBag<T>
of(T... elements)

Same as with(Object[]).

public default <T> MultiReaderBag<T>
ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

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

Same as empty().

public <T> MultiReaderBag<T>
with(T... elements)

public <T> MultiReaderBag<T>
withAll(Iterable<? extends T> items)

Method Detail

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

Same as empty().

ofback to summary
public default <T> MultiReaderBag<T> of(T... elements)

Same as with(Object[]).

ofAllback to summary
public default <T> MultiReaderBag<T> ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

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

Same as empty().

withback to summary
public <T> MultiReaderBag<T> with(T... elements)
withAllback to summary
public <T> MultiReaderBag<T> withAll(Iterable<? extends T> items)