类 ConverterUtil


  • public class ConverterUtil
    extends Object
    • 构造器详细资料

      • ConverterUtil

        public ConverterUtil​(FrameworkModel frameworkModel)
    • 方法详细资料

      • convertIfPossible

        public <T> T convertIfPossible​(Object source,
                                       Class<T> targetType)
        Convert the value of source to target-type value if possible
        类型参数:
        T - the target type
        参数:
        source - the value of source
        targetType - the target type
        返回:
        null if can't be converted
        从以下版本开始:
        2.7.8