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_LIST
static FixedSizeListFactory
INSTANCE
-
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:
empty
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of()
Description copied from interface:FixedSizeListFactory
Same asFixedSizeListFactory.empty()
.- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with()
Description copied from interface:FixedSizeListFactory
Same asFixedSizeListFactory.empty()
.- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one)
Description copied from interface:FixedSizeListFactory
Same asFixedSizeListFactory.with(Object)
.- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one)
- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two)
Description copied from interface:FixedSizeListFactory
- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two)
- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three)
Description copied from interface:FixedSizeListFactory
- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three)
- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three, T four)
Description copied from interface:FixedSizeListFactory
- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four)
- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T one, T two, T three, T four, T five)
Description copied from interface:FixedSizeListFactory
- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four, T five)
- Specified by:
with
in 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:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T one, T two, T three, T four, T five, T six)
- Specified by:
with
in interfaceFixedSizeListFactory
-
of
public <T> FixedSizeList<T> of(T... items)
Description copied from interface:FixedSizeListFactory
- Specified by:
of
in interfaceFixedSizeListFactory
-
with
public <T> FixedSizeList<T> with(T... items)
- Specified by:
with
in interfaceFixedSizeListFactory
-
ofAll
public <T> FixedSizeList<T> ofAll(java.lang.Iterable<? extends T> items)
Description copied from interface:FixedSizeListFactory
- Specified by:
ofAll
in interfaceFixedSizeListFactory
-
withAll
public <T> FixedSizeList<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAll
in interfaceFixedSizeListFactory
-
fromStream
public <T> FixedSizeList<T> fromStream(java.util.stream.Stream<? extends T> stream)
- Specified by:
fromStream
in interfaceFixedSizeListFactory
-
-