public class ReflectionUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getClassForType(Type type)
Returns the class of a type, using the upper bound in case of a
WildcardType |
static ParameterizedType |
getParameterizedType(Type type)
Returns the type as
ParameterizedType, using the upper bound in case of a WildcardType |
static boolean |
isParameterizedType(Type type)
Returns true if the the type is a
ParameterizedType, using the upper bound in case of a WildcardType |
public static boolean isParameterizedType(Type type)
ParameterizedType, using the upper bound in case of a WildcardTypetype - the type to checkParameterizedTypepublic static ParameterizedType getParameterizedType(Type type)
ParameterizedType, using the upper bound in case of a WildcardTypetype - the type to castpublic static Class<?> getClassForType(Type type) throws ClassNotFoundException
WildcardTypetype - the type to resolve the class forClassNotFoundException - in case the class is not availableCopyright © 2022. All rights reserved.