Class MultiReaderMutableListFactory
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.MultiReaderMutableListFactory
-
- All Implemented Interfaces:
MultiReaderListFactory
public class MultiReaderMutableListFactory extends Object implements MultiReaderListFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MultiReaderListFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MultiReaderMutableListFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MultiReaderList<T>
empty()
<T> MultiReaderList<T>
fromStream(Stream<? extends T> stream)
<T> MultiReaderList<T>
with(T... items)
<T> MultiReaderList<T>
withAll(Iterable<? extends T> iterable)
<T> MultiReaderList<T>
withInitialCapacity(int capacity)
<T> MultiReaderList<T>
withNValues(int size, Function0<? extends T> factory)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.list.MultiReaderListFactory
of, of, ofAll, ofInitialCapacity, with
-
-
-
-
Field Detail
-
INSTANCE
public static final MultiReaderListFactory INSTANCE
-
-
Method Detail
-
empty
public <T> MultiReaderList<T> empty()
- Specified by:
empty
in interfaceMultiReaderListFactory
-
with
public <T> MultiReaderList<T> with(T... items)
- Specified by:
with
in interfaceMultiReaderListFactory
-
withInitialCapacity
public <T> MultiReaderList<T> withInitialCapacity(int capacity)
- Specified by:
withInitialCapacity
in interfaceMultiReaderListFactory
-
withAll
public <T> MultiReaderList<T> withAll(Iterable<? extends T> iterable)
- Specified by:
withAll
in interfaceMultiReaderListFactory
-
fromStream
public <T> MultiReaderList<T> fromStream(Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceMultiReaderListFactory
-
withNValues
public <T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)
- Specified by:
withNValues
in interfaceMultiReaderListFactory
-
-