getTypeArguments abstract method
Returns the concrete generic type arguments declared on this class.
This method exposes the resolved generic parameters associated with this Class instance.
For example, given:
class Box<T> {}
class StringBox extends Box<String> {}
Calling getTypeArguments() on Class<StringBox> would return a list
containing Class<String>.
Behavior
- Returns an empty list if the class is not generic.
- The order of elements matches the declaration order of the type parameters.
- Returned Class objects represent the actual resolved types, not just the formal type variables.
Returns
- A list of Class<Object> representing the resolved type arguments.
Implementation
Iterable<Class<Object>> getTypeArguments();