类 TypeUtils
- java.lang.Object
- org.springframework.util.TypeUtils
构造器概要
构造器 构造器 说明 TypeUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static boolean
isAssignable(Type lhsType, Type rhsType)
Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.static boolean
isAssignableBound(Type lhsType, Type rhsType)
构造器详细资料
TypeUtils
public TypeUtils()
方法详细资料
isAssignable
public static boolean isAssignable(Type lhsType, Type rhsType)
Check if the right-hand side type may be assigned to the left-hand side type following the Java generics rules.- 参数:
lhsType
- the target typerhsType
- the value type that should be assigned to the target type- 返回:
- true if rhs is assignable to lhs
isAssignableBound
public static boolean isAssignableBound(@Nullable Type lhsType, @Nullable Type rhsType)