public class ArrayUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
INT_TYPE_ARRAY |
static String[] |
STRING_TYPE_ARRAY |
Constructor and Description |
---|
ArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> Collection<T> |
asCollection(T[] array) |
static int[] |
asIntArray(int... ints) |
static int[] |
asIntArray(List<Integer> list) |
static List<Integer> |
asIntegerList(int... ints) |
static <T> List<T> |
asList(T[] array) |
static boolean |
isEmpty(int[] array) |
static boolean |
isEmpty(String[] array) |
static boolean |
isNotEmpty(int[] array) |
static boolean |
isNotEmpty(String[] array) |
public static final String[] STRING_TYPE_ARRAY
public static final int[] INT_TYPE_ARRAY
public static <T> List<T> asList(T[] array)
public static <T> Collection<T> asCollection(T[] array)
public static int[] asIntArray(int... ints)
public static boolean isEmpty(int[] array)
public static boolean isEmpty(String[] array)
public static boolean isNotEmpty(int[] array)
public static boolean isNotEmpty(String[] array)
Copyright © 2013. All Rights Reserved.