| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static int | |
| public static Class | Returns: the type of elementsthe type of array clazz)Get the type of array elements |
| public static Class | Returns: the result arraythe type of array clazz, int the target dimension dim)Get the type of array elements by the dimension |
| ArrayTypeUtils | back to summary |
|---|---|
| public ArrayTypeUtils() | |
| checkArrayType | back to summary |
|---|---|
| private static void checkArrayType(Class<T> clazz) Check whether the type passed in is array type. If the type is not array type, throw IllegalArgumentException. | |
| dimension | back to summary |
|---|---|
| public static int dimension(Class<T> clazz) Calculate the dimension of array
| |
| elementType | back to summary |
|---|---|
| public static Class Get the type of array elements | |
| elementType | back to summary |
|---|---|
| public static Class Get the type of array elements by the dimension | |