Interface ImmutableListFactory
public interface ImmutableListFactory
-
Method Summary
Modifier and TypeMethodDescription<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>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>default <T> ImmutableList<T>withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items) default <T> ImmutableList<T>withAllSorted(RichIterable<? extends T> items)
-
Method Details
-
empty
- Since:
- 6.0
-
of
Same asempty(). -
with
Same asempty(). -
of
Same aswith(Object). -
with
-
of
Same aswith(Object, Object). -
with
-
of
Same aswith(Object, Object, Object). -
with
-
of
Same aswith(Object, Object, Object, Object). -
with
-
of
-
with
-
of
-
with
-
of
-
with
-
of
-
with
-
of
-
with
-
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
Same aswith(Object[]). -
with
-
ofAll
Same aswithAll(Iterable). -
withAll
-
fromStream
- Since:
- 10.0.
-
withAllSorted
- Since:
- 11.0.
-
withAllSorted
default <T> ImmutableList<T> withAllSorted(Comparator<? super T> comparator, RichIterable<? extends T> items) - Since:
- 11.0.
-