Class FixedSizeListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.fixed.FixedSizeListFactoryImpl
-
- All Implemented Interfaces:
FixedSizeListFactory
public class FixedSizeListFactoryImpl extends java.lang.Object implements FixedSizeListFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static FixedSizeList<?>EMPTY_LISTstatic FixedSizeListFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description FixedSizeListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> FixedSizeList<T>empty()<T> FixedSizeList<T>fromStream(java.util.stream.Stream<? extends T> stream)<T> FixedSizeList<T>of()Same asFixedSizeListFactory.empty().<T> FixedSizeList<T>of(T one)Same asFixedSizeListFactory.with(Object).<T> FixedSizeList<T>of(T... items)<T> FixedSizeList<T>of(T one, T two)<T> FixedSizeList<T>of(T one, T two, T three)<T> FixedSizeList<T>of(T one, T two, T three, T four)<T> FixedSizeList<T>of(T one, T two, T three, T four, T five)<T> FixedSizeList<T>of(T one, T two, T three, T four, T five, T six)<T> FixedSizeList<T>ofAll(java.lang.Iterable<? extends T> items)<T> FixedSizeList<T>with()Same asFixedSizeListFactory.empty().<T> FixedSizeList<T>with(T one)<T> FixedSizeList<T>with(T... items)<T> FixedSizeList<T>with(T one, T two)<T> FixedSizeList<T>with(T one, T two, T three)<T> FixedSizeList<T>with(T one, T two, T three, T four)<T> FixedSizeList<T>with(T one, T two, T three, T four, T five)<T> FixedSizeList<T>with(T one, T two, T three, T four, T five, T six)<T> FixedSizeList<T>withAll(java.lang.Iterable<? extends T> items)
-
-
-
Field Detail
-
INSTANCE
public static final FixedSizeListFactory INSTANCE
-
EMPTY_LIST
private static final FixedSizeList<?> EMPTY_LIST
-
-
Method Detail
-
empty
public <T> FixedSizeList<T> empty()
- Specified by:
emptyin interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of()
Description copied from interface:FixedSizeListFactorySame asFixedSizeListFactory.empty().- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with()
Description copied from interface:FixedSizeListFactorySame asFixedSizeListFactory.empty().- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one)
Description copied from interface:FixedSizeListFactorySame asFixedSizeListFactory.with(Object).- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three, T four)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three, T four, T five)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four, T five)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three, T four, T five, T six)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four, T five, T six)
- Specified by:
within interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T... items)
Description copied from interface:FixedSizeListFactory- Specified by:
ofin interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T... items)
- Specified by:
within interfaceFixedSizeListFactory
-
ofAll
public <T> FixedSizeList<T> ofAll(java.lang.Iterable<? extends T> items)
Description copied from interface:FixedSizeListFactory- Specified by:
ofAllin interfaceFixedSizeListFactory
-
withAll
public <T> FixedSizeList<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAllin interfaceFixedSizeListFactory
-
fromStream
public <T> FixedSizeList<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStreamin interfaceFixedSizeListFactory
-
-