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