| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
create()
Returns an empty list.
|
static <E> List<E> |
freeze(E[] elements)
Returns a frozen list which has copy of the elements.
|
static <E> List<E> |
freeze(Iterable<? extends E> elements)
Returns a frozen list which has copy of the elements.
|
static <E> List<E> |
from(E[] elements)
Returns a list which consists of the specified elements.
|
static <E> List<E> |
from(Iterable<? extends E> elements)
Returns a list which has copy of the elements.
|
static <E> List<E> |
of(E elem)
Returns a list which consists of the specified element.
|
static <E> List<E> |
of(E elem1,
E elem2)
Returns a list which consists of the specified elements.
|
static <E> List<E> |
of(E elem1,
E elem2,
E elem3)
Returns a list which consists of the specified elements.
|
static <E> List<E> |
of(E elem1,
E elem2,
E elem3,
E elem4,
E... rest)
Returns a list which consists of the specified elements.
|
public static <E> List<E> create()
E - element typepublic static <E> List<E> of(E elem)
E - element typeelem - the elementpublic static <E> List<E> of(E elem1, E elem2)
E - element typeelem1 - the first elementelem2 - the second elementpublic static <E> List<E> of(E elem1, E elem2, E elem3)
E - element typeelem1 - the first elementelem2 - the second elementelem3 - the third element@SafeVarargs public static <E> List<E> of(E elem1, E elem2, E elem3, E elem4, E... rest)
E - element typeelem1 - the first elementelem2 - the second elementelem3 - the third elementelem4 - the fourth elementrest - the rest elementspublic static <E> List<E> from(E[] elements)
E - element typeelements - the elementspublic static <E> List<E> from(Iterable<? extends E> elements)
E - element typeelements - the elementsIllegalArgumentException - if some parameters were nullpublic static <E> List<E> freeze(Iterable<? extends E> elements)
E - element typeelements - the elementsIllegalArgumentException - if some parameters were nullpublic static <E> List<E> freeze(E[] elements)
E - element typeelements - the elementsIllegalArgumentException - if some parameters were nullCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.