Package 

Class ConverterExtensions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T convert(Object $self, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。
      final static <T extends Any> T convert(Object $self, Class<T> targetType, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。
      final static Object convert(Object $self, Type targetType, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。
      final static <T extends Any> T convertOrNull(Object $self, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。
      final static <T extends Any> T convertOrNull(Object $self, Class<T> targetType, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。
      final static Object convertOrNull(Object $self, Type targetType, Map<String, Object> componentParams) 根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • convert

         final static <T extends Any> T convert(Object $self, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。

      • convert

         final static <T extends Any> T convert(Object $self, Class<T> targetType, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。

      • convert

         final static Object convert(Object $self, Type targetType, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则抛出异常。

      • convertOrNull

         final static <T extends Any> T convertOrNull(Object $self, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。

      • convertOrNull

         final static <T extends Any> T convertOrNull(Object $self, Class<T> targetType, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。

      • convertOrNull

         final static Object convertOrNull(Object $self, Type targetType, Map<String, Object> componentParams)

        根据可选的配置参数,将当前对象转化为指定类型。如果指定的对象是null,或者转化失败,则返回null。