public final class ListFactory extends Object
ListFactory provides factory methods for create new Map objects| Constructor and Description |
|---|
ListFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
newArrayList(Collection<T> collection,
T... elements)
Factory method for create new
ArrayList from the given optional collection and the
given optional elements. |
static <T> List<T> |
newArrayList(int initialCapacity)
Deprecated.
use instead the same name method with elements
Note: will be removed in next minor release |
static <T> List<T> |
newArrayList(T... elements)
Factory method for create new
ArrayList from the given optional elements. |
static List<Integer> |
newRangeList(int start,
int end)
|
@SafeVarargs public static <T> List<T> newArrayList(Collection<T> collection, T... elements)
ArrayList from the given optional collection and the
given optional elements.@Deprecated public static <T> List<T> newArrayList(int initialCapacity)
@SafeVarargs public static <T> List<T> newArrayList(T... elements)
ArrayList from the given optional elements.public static List<Integer> newRangeList(int start, int end)
Integer List with the given range that is defined through start
and end. For instance if the start is 5 and the end is 9 the resulted List will be
[5,6,7,8,9]start - The number to startend - The number to end minus oneInteger ListCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.