public class ArrayTypeUtils extends Object
| Constructor and Description |
|---|
ArrayTypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
dimension(Class clazz)
Calculate the dimension of array
|
static Class |
elementType(Class clazz)
Get the type of array elements
|
static Class |
elementType(Class clazz,
int dim)
Get the type of array elements by the dimension
|
public static int dimension(Class clazz)
clazz - the type of arraypublic static Class elementType(Class clazz)
clazz - the type of array