Class ImmutableListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.immutable.ImmutableListFactoryImpl
-
- All Implemented Interfaces:
ImmutableListFactory
public class ImmutableListFactoryImpl extends java.lang.Object implements ImmutableListFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableListFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ImmutableList<T>empty()<T> ImmutableList<T>of()Same asImmutableListFactory.empty().<T> ImmutableList<T>of(T one)Same asImmutableListFactory.with(Object).<T> ImmutableList<T>of(T... items)Same asImmutableListFactory.with(Object[]).<T> ImmutableList<T>of(T one, T two)<T> ImmutableList<T>of(T one, T two, T three)<T> ImmutableList<T>of(T one, T two, T three, T four)<T> ImmutableList<T>of(T one, T two, T three, T four, T five)<T> ImmutableList<T>of(T one, T two, T three, T four, T five, T six)<T> ImmutableList<T>of(T one, T two, T three, T four, T five, T six, T seven)<T> ImmutableList<T>of(T one, T two, T three, T four, T five, T six, T seven, T eight)<T> ImmutableList<T>of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)<T> ImmutableList<T>of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)<T> ImmutableList<T>ofAll(java.lang.Iterable<? extends T> items)<T> ImmutableList<T>with()Same asImmutableListFactory.empty().<T> ImmutableList<T>with(T one)<T> ImmutableList<T>with(T... items)<T> ImmutableList<T>with(T one, T two)<T> ImmutableList<T>with(T one, T two, T three)<T> ImmutableList<T>with(T one, T two, T three, T four)<T> ImmutableList<T>with(T one, T two, T three, T four, T five)<T> ImmutableList<T>with(T one, T two, T three, T four, T five, T six)<T> ImmutableList<T>with(T one, T two, T three, T four, T five, T six, T seven)<T> ImmutableList<T>with(T one, T two, T three, T four, T five, T six, T seven, T eight)<T> ImmutableList<T>with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)<T> ImmutableList<T>with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)<T> ImmutableList<T>withAll(java.lang.Iterable<? extends T> items)<T> ImmutableList<T>withAllSorted(java.util.Comparator<? super T> comparator, RichIterable<? extends T> items)<T> ImmutableList<T>withAllSorted(RichIterable<? extends T> items)private <T> ImmutableList<T>withList(java.util.List<T> items)-
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.ImmutableListFactory
fromStream
-
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableListFactory INSTANCE
-
-
Method Detail
-
empty
public <T> ImmutableList<T> empty()
- Specified by:
emptyin interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of()
Description copied from interface:ImmutableListFactorySame asImmutableListFactory.empty().- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with()
Description copied from interface:ImmutableListFactorySame asImmutableListFactory.empty().- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one)
Description copied from interface:ImmutableListFactorySame asImmutableListFactory.with(Object).- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
Description copied from interface:ImmutableListFactorySame asImmutableListFactory.with(Object, Object, Object, Object, Object, Object, Object, Object, Object).- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)
Description copied from interface:ImmutableListFactory- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)
- Specified by:
within interfaceImmutableListFactory
-
of
public <T> ImmutableList<T> of(T... items)
Description copied from interface:ImmutableListFactorySame asImmutableListFactory.with(Object[]).- Specified by:
ofin interfaceImmutableListFactory
-
with
public <T> ImmutableList<T> with(T... items)
- Specified by:
within interfaceImmutableListFactory
-
withList
private <T> ImmutableList<T> withList(java.util.List<T> items)
-
ofAll
public <T> ImmutableList<T> ofAll(java.lang.Iterable<? extends T> items)
Description copied from interface:ImmutableListFactory- Specified by:
ofAllin interfaceImmutableListFactory
-
withAll
public <T> ImmutableList<T> withAll(java.lang.Iterable<? extends T> items)
- Specified by:
withAllin interfaceImmutableListFactory
-
withAllSorted
public <T> ImmutableList<T> withAllSorted(RichIterable<? extends T> items)
- Specified by:
withAllSortedin interfaceImmutableListFactory
-
withAllSorted
public <T> ImmutableList<T> withAllSorted(java.util.Comparator<? super T> comparator, RichIterable<? extends T> items)
- Specified by:
withAllSortedin interfaceImmutableListFactory
-
-