Class MultiReaderMutableListFactory
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.MultiReaderMutableListFactory
-
- All Implemented Interfaces:
MultiReaderListFactory
public class MultiReaderMutableListFactory extends java.lang.Object implements MultiReaderListFactory
-
-
Field Summary
Fields Modifier and Type Field Description static MultiReaderListFactoryINSTANCE
-
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(java.util.stream.Stream<? extends T> stream)<T> MultiReaderList<T>with(T... items)<T> MultiReaderList<T>withAll(java.lang.Iterable<? extends T> iterable)<T> MultiReaderList<T>withInitialCapacity(int capacity)Same asMultiReaderListFactory.empty().<T> MultiReaderList<T>withNValues(int size, Function0<? extends T> factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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:
emptyin interfaceMultiReaderListFactory
-
with
public <T> MultiReaderList<T> with(T... items)
- Specified by:
within interfaceMultiReaderListFactory
-
withInitialCapacity
public <T> MultiReaderList<T> withInitialCapacity(int capacity)
Description copied from interface:MultiReaderListFactorySame asMultiReaderListFactory.empty(). but takes in initial capacity.- Specified by:
withInitialCapacityin interfaceMultiReaderListFactory
-
withAll
public <T> MultiReaderList<T> withAll(java.lang.Iterable<? extends T> iterable)
- Specified by:
withAllin interfaceMultiReaderListFactory
-
fromStream
public <T> MultiReaderList<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceMultiReaderListFactory
-
withNValues
public <T> MultiReaderList<T> withNValues(int size, Function0<? extends T> factory)
- Specified by:
withNValuesin interfaceMultiReaderListFactory
-
-