类 TypeUtils
java.lang.Object
cn.taketoday.util.TypeUtils
Utility to work with Java 5 generic type parameters.
Mainly for internal use within the framework.
- 从以下版本开始:
- 4.0
- 作者:
- Ramnivas Laddad, Juergen Hoeller, Chris Beams, TODAY 2021/9/6 22:29
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisAssignable(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 booleanisNotAssignableBound(Type lhsType, Type rhsType)
-
构造器详细资料
-
TypeUtils
public TypeUtils()
-
-
方法详细资料
-
isAssignable
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
-
isNotAssignableBound
-