| 限定符和类型 | 方法和说明 |
|---|---|
T |
cast(Object obj) |
boolean |
equals(Object o) |
Type |
getActualType(Class<?> genericClass,
int typeParameterIndex) |
Type |
getActualType(TypeVariable<?> typeVariable) |
Type |
getArrayComponentType() |
Class<T> |
getRawClass() |
Type |
getRawType() |
Type[] |
getTypeArguments() |
String |
getTypeName() |
Map<TypeVariable<?>,Type> |
getTypeVariableMap() |
int |
hashCode() |
boolean |
isArray() |
boolean |
isEnum() |
boolean |
isInstance(Object obj) |
static <T> JavaType<T> |
of(Class<T> clazz) |
static <T> JavaType<T> |
of(String typeName) |
static <T> JavaType<T> |
of(Type type) |
static <T> JavaType<T> |
of(TypeRef<T> type) |
String |
toString() |
protected JavaType(Type type)
@Nonnull public static <T> JavaType<T> of(@Nonnull String typeName) throws ClassNotFoundException
public Type getRawType()
public boolean isInstance(Object obj)
public boolean isEnum()
public boolean isArray()
@Nonnull public Map<TypeVariable<?>,Type> getTypeVariableMap()
@Nonnull public Type getActualType(TypeVariable<?> typeVariable)
public Type getArrayComponentType()
public String getTypeName()
getTypeName 在接口中 TypeCopyright © 2024 fossc. All rights reserved.