Class TypeConverter
java.lang.Object
com.github.thought2code.mcp.annotated.util.TypeConverter
Helper class for Java and JSON schema type conversion.
- Author:
- codeboyzhou
-
Method Summary
-
Method Details
-
convert
Converts the given value to the specified target type. If the value is null, returns the default value for the target type.- Parameters:
value- the value to converttargetType- the target type to convert to- Returns:
- the converted value
-