| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
newList(Iterable<? extends E> elements)
Creates a new
ArrayList containing all elements from elements. |
static <E> List<E> |
newList(Iterator<? extends E> elements)
Creates a new
ArrayList containing all elements from elements. |
static <T> List<T> |
newList(T... elements)
Creates a new
ArrayList containing all elements from elements. |
static <E> List<E> |
unmodifiableList(Collection<? extends E> elements)
Creates a new unmodifiable
ArrayList containing all elements from elements. |
static <E> List<E> |
unmodifiableList(E... elements)
Creates a new unmodifiable
ArrayList containing all elements from elements. |
@SafeVarargs public static final <T> List<T> newList(T... elements)
ArrayList containing all elements from elements.elements - the elements that the list should contain, must not be null.ArrayList containing all elements from elements.public static final <E> List<E> newList(Iterable<? extends E> elements)
ArrayList containing all elements from elements.elements - the elements that the list should contain, must not be null.ArrayList containing all elements from elements.public static final <E> List<E> newList(Iterator<? extends E> elements)
ArrayList containing all elements from elements.elements - the elements that the list should contain, must not be null.ArrayList containing all elements from elements.public static <E> List<E> unmodifiableList(E... elements)
ArrayList containing all elements from elements.elements - the elements that the list should contain, must not be null.ArrayList containing all elements from elements.public static <E> List<E> unmodifiableList(Collection<? extends E> elements)
ArrayList containing all elements from elements.elements - the elements that the list should contain, must not be null.ArrayList containing all elements from elements.Copyright © 2016. All rights reserved.