public final class TypeUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static ParameterizedType |
createParameterizedType(Type rawClass,
Type... genericTypes) |
static List<Class<?>> |
getAllClasses(Class<?> clazz) |
static Class<?> |
getRawClass(Type type) |
static Type |
getRestResponseBodyType(Type restResponseReturnType) |
static Type |
getSuperType(Type type) |
static Type |
getSuperType(Type subType,
Class<?> rawSuperType) |
static Type |
getTypeArgument(Type type) |
static Type[] |
getTypeArguments(Type type) |
static boolean |
isTypeOrSubTypeOf(Type subType,
Type superType) |
static boolean |
restResponseTypeExpectsBody(ParameterizedType restResponseReturnType) |
public static ParameterizedType createParameterizedType(Type rawClass, Type... genericTypes)
public static boolean restResponseTypeExpectsBody(ParameterizedType restResponseReturnType)
Copyright © 2023. All rights reserved.