public final class ListUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
asList(T[] array)
Transform an array T[] into a List of T.
|
static <T> String[] |
asStringArray(List<T> list)
Transform a List of Ts into a String Array.
|
static <T> List<String> |
asStringList(List<T> list)
Transform an Array T[] into a List of T.
|
public static <T> List<T> asList(T[] array)
array
- the generic T[] to transformpublic static <T> String[] asStringArray(List<T> list)
list
- the generic List of T to transform
mainly used to transform for mixed long, Long and int.
It cannot be nullCopyright © 2015. All Rights Reserved.