Package com.xxl.tool.core
Class TypeTool
java.lang.Object
com.xxl.tool.core.TypeTool
Class Tool
- Author:
- xuxueli 2024-01-21 05:03:10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAssignable(Type superType, Type subType) Check if the right-hand side type may be assigned to the left-hand side type
-
Constructor Details
-
TypeTool
public TypeTool()
-
-
Method Details
-
isAssignable
Check if the right-hand side type may be assigned to the left-hand side type- Parameters:
superType- super typesubType- the sub type that should be assigned to the target type- Returns:
- true if subType is assignable to superType
-