Top Methods
org.eclipse.collections.api.factory.list

public Interface ImmutableListFactory

Imports
java.util.Comparator, java.util.stream.Stream, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.list.ImmutableList, .MutableList

Method Summary

Modifier and TypeMethod and Description
public <T> ImmutableList<T>
public default <T> ImmutableList<T>
fromStream(Stream<? extends T> stream)

public <T> ImmutableList<T>
of()

Same as empty().

public <T> ImmutableList<T>
of(T one)

Same as with(Object).

public <T> ImmutableList<T>
of(T one, T two)

Same as with(Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three)

Same as with(Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four)

Same as with(Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four, T five)

Same as with(Object, Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four, T five, T six)

Same as with(Object, Object, Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four, T five, T six, T seven)

Same as with(Object, Object, Object, Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four, T five, T six, T seven, T eight)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object, Object).

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)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object).

public <T> ImmutableList<T>
of(T... items)

Same as with(Object[]).

public <T> ImmutableList<T>
ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

public <T> ImmutableList<T>
with()

Same as empty().

public <T> ImmutableList<T>
with(T one)

public <T> ImmutableList<T>
with(T one, T two)

public <T> ImmutableList<T>
with(T one, T two, T three)

public <T> ImmutableList<T>
with(T one, T two, T three, T four)

public <T> ImmutableList<T>
with(T one, T two, T three, T four, T five)

public <T> ImmutableList<T>
with(T one, T two, T three, T four, T five, T six)

public <T> ImmutableList<T>
with(T one, T two, T three, T four, T five, T six, T seven)

public <T> ImmutableList<T>
with(T one, T two, T three, T four, T five, T six, T seven, T eight)

public <T> ImmutableList<T>
with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)

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)

public <T> ImmutableList<T>
with(T... items)

public <T> ImmutableList<T>
withAll(Iterable<? extends T> items)

public default <T> ImmutableList<T>
withAllSorted(RichIterable<? extends T> items)

public default <T> ImmutableList<T>
withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items)

Method Detail

emptyback to summary
public <T> ImmutableList<T> empty()
Since
6.0
fromStreamback to summary
public default <T> ImmutableList<T> fromStream(Stream<? extends T> stream)
Since
10.0.
ofback to summary
public <T> ImmutableList<T> of()

Same as empty().

ofback to summary
public <T> ImmutableList<T> of(T one)

Same as with(Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two)

Same as with(Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three)

Same as with(Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four)

Same as with(Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five)

Same as with(Object, Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six)

Same as with(Object, Object, Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven)

Same as with(Object, Object, Object, Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object, Object).

ofback to summary
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)

Same as with(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object).

ofback to summary
public <T> ImmutableList<T> of(T... items)

Same as with(Object[]).

ofAllback to summary
public <T> ImmutableList<T> ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

withback to summary
public <T> ImmutableList<T> with()

Same as empty().

withback to summary
public <T> ImmutableList<T> with(T one)
withback to summary
public <T> ImmutableList<T> with(T one, T two)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight)
withback to summary
public <T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
withback to summary
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)
withback to summary
public <T> ImmutableList<T> with(T... items)
withAllback to summary
public <T> ImmutableList<T> withAll(Iterable<? extends T> items)
withAllSortedback to summary
public default <T> ImmutableList<T> withAllSorted(RichIterable<? extends T> items)
Since
11.0.
withAllSortedback to summary
public default <T> ImmutableList<T> withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items)
Since
11.0.