public class ArrayClassProperties extends Object implements ArrayTypeProperties
Examples:
ArrayClassProperties arrayProps1 = new ArrayClassProperties(String[][].class);
// arrayProps1 = new ArrayClassProperties(String.class, 2)
ArrayClassProperties arrayProps1 = new ArrayClassProperties(String.class);
// arrayProps2 = new ArrayClassProperties(String.class, 0)| Constructor and Description |
|---|
ArrayClassProperties(Class<?> clazz)
Constructor.
|
ArrayClassProperties(Class<?> componentType,
int dimension)
Constructor for manual creation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Class<?> |
getComponentType()
Returns the component of the array.
|
int |
getDimension()
Returns the dimension of the array type.
|
int |
hashCode() |
String |
toString() |
public ArrayClassProperties(Class<?> clazz)
clazz - the class to describepublic ArrayClassProperties(Class<?> componentType, int dimension)
componentType - the component typedimension - the dimensionpublic Class<?> getComponentType()
ArrayTypePropertiesgetComponentType in interface ArrayTypePropertiespublic int getDimension()
ArrayTypePropertiesString[]; for double[][][], the dimension is 3. If the processed type is not an array, the
method returns 0.getDimension in interface ArrayTypePropertiesCopyright © 2023. All rights reserved.