public final class ArrayUtil extends Object
Modifier | Constructor and Description |
---|---|
private |
ArrayUtil() |
Modifier and Type | Method and Description |
---|---|
static List<Byte> |
asList(byte[] vals) |
static List<Character> |
asList(char[] vals) |
static List<Double> |
asList(double[] vals) |
static List<Float> |
asList(float[] vals) |
static List<Integer> |
asList(int[] vals) |
static List<Long> |
asList(long[] vals) |
static List<Short> |
asList(short[] vals) |
static int |
getArrayLength(Object array) |
static Type |
getArrayTypeFor(Class<?> clazz) |
public static int getArrayLength(Object array)
IllegalArgumentException
- if the given object is not an arrayCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.