public class ArrayTypeUtils
extends java.lang.Object
| Constructor and Description |
|---|
ArrayTypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
dimension(java.lang.Class clazz)
Calculate the dimension of array
|
static java.lang.Class |
elementType(java.lang.Class clazz)
Get the type of array elements
|
static java.lang.Class |
reduceDimension(java.lang.Class clazz,
int dim)
Reduce the dimension of array
|
public static int dimension(java.lang.Class clazz)
clazz - the type of arraypublic static java.lang.Class elementType(java.lang.Class clazz)
clazz - the type of arraypublic static java.lang.Class reduceDimension(java.lang.Class clazz,
int dim)
clazz - the type of arraydim - the target dimension