类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static Type[]getLowerBounds(WildcardType wildcardType) private static Type[]getUpperBounds(WildcardType wildcardType) private static booleanisAssignable(ParameterizedType lhsType, ParameterizedType rhsType) 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.private static booleanisAssignable(WildcardType lhsType, Type rhsType) 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 type (left-hand side (LHS) type)rhsType- the value type (right-hand side (RHS) type) that should be assigned to the target type- 返回:
trueifrhsTypeis assignable tolhsType- 另请参阅:
-
isAssignable
-
isAssignable
-
isNotAssignableBound
-
getLowerBounds
-
getUpperBounds
-