Class TypeTool

java.lang.Object
com.xxl.tool.core.TypeTool

public class TypeTool extends Object
Class Tool
Author:
xuxueli 2024-01-21 05:03:10
  • Constructor Details

    • TypeTool

      public TypeTool()
  • Method Details

    • isAssignable

      public static boolean isAssignable(Type superType, Type subType)
      Check if the right-hand side type may be assigned to the left-hand side type
      Parameters:
      superType - super type
      subType - the sub type that should be assigned to the target type
      Returns:
      true if subType is assignable to superType