Interface ImmutableListFactory
-
public interface ImmutableListFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> ImmutableList<T>empty()default <T> ImmutableList<T>fromStream(Stream<? extends T> stream)<T> ImmutableList<T>of()Same asempty().<T> ImmutableList<T>of(T one)Same aswith(Object).<T> ImmutableList<T>of(T... items)Same aswith(Object[]).<T> ImmutableList<T>of(T one, T two)Same aswith(Object, Object).<T> ImmutableList<T>of(T one, T two, T three)Same aswith(Object, Object, Object).<T> ImmutableList<T>of(T one, T two, T three, T four)Same aswith(Object, Object, Object, Object).<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(Iterable<? extends T> items)Same aswithAll(Iterable).<T> ImmutableList<T>with()Same asempty().<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(Iterable<? extends T> items)default <T> ImmutableList<T>withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items)default <T> ImmutableList<T>withAllSorted(RichIterable<? extends T> items)
-
-
-
Method Detail
-
empty
<T> ImmutableList<T> empty()
- Since:
- 6.0
-
of
<T> ImmutableList<T> of()
Same asempty().
-
with
<T> ImmutableList<T> with()
Same asempty().
-
of
<T> ImmutableList<T> of(T one)
Same aswith(Object).
-
with
<T> ImmutableList<T> with(T one)
-
of
<T> ImmutableList<T> of(T one, T two)
Same aswith(Object, Object).
-
with
<T> ImmutableList<T> with(T one, T two)
-
of
<T> ImmutableList<T> of(T one, T two, T three)
Same aswith(Object, Object, Object).
-
with
<T> ImmutableList<T> with(T one, T two, T three)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four)
Same aswith(Object, Object, Object, Object).
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine)
-
of
<T> ImmutableList<T> of(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)
-
with
<T> ImmutableList<T> with(T one, T two, T three, T four, T five, T six, T seven, T eight, T nine, T ten)
-
of
<T> ImmutableList<T> of(T... items)
Same aswith(Object[]).
-
with
<T> ImmutableList<T> with(T... items)
-
ofAll
<T> ImmutableList<T> ofAll(Iterable<? extends T> items)
Same aswithAll(Iterable).
-
withAll
<T> ImmutableList<T> withAll(Iterable<? extends T> items)
-
fromStream
default <T> ImmutableList<T> fromStream(Stream<? extends T> stream)
- Since:
- 10.0.
-
withAllSorted
default <T> ImmutableList<T> withAllSorted(RichIterable<? extends T> items)
- Since:
- 11.0.
-
withAllSorted
default <T> ImmutableList<T> withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items)
- Since:
- 11.0.
-
-