public class Generics extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getClass(Type type) |
static <T> List<Class> |
getTypeArguments(Class<T> baseClass,
Class<? extends T> childClass)
Get the actual type arguments a child class has used to extend a generic base class.
|
public static <T> List<Class> getTypeArguments(Class<T> baseClass, Class<? extends T> childClass)
T - the type of the base classbaseClass - the base classchildClass - the child classCopyright © 2015–2024 Red Hat. All rights reserved.