类 TypeUtils


  • public abstract class TypeUtils
    extends Object
    Utility to work with Java 5 generic type parameters. Mainly for internal use within the framework.
    从以下版本开始:
    2.0.7
    作者:
    Ramnivas Laddad, Juergen Hoeller, Chris Beams
    • 构造器详细资料

    • 方法详细资料

      • 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 type
        rhsType - the value type that should be assigned to the target type
        返回:
        true if rhs is assignable to lhs