Package org.apache.johnzon.mapper.util
Class ArrayUtil
- java.lang.Object
-
- org.apache.johnzon.mapper.util.ArrayUtil
-
public final class ArrayUtil extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ArrayUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getArrayLength
public static int getArrayLength(Object array)
- Returns:
- the length of the array given.
- Throws:
IllegalArgumentException
- if the given object is not an array
-
-