Class ObjectMappers


  • public class ObjectMappers
    extends java.lang.Object
    Object Mappers utils.
    Author:
    jameschu
    • Field Detail

      • IGNORE_FIRST_LIST_ID

        public static final java.lang.String IGNORE_FIRST_LIST_ID
        See Also:
        Constant Field Values
      • SETTER_OBJECT_MAPPER

        public static final com.fasterxml.jackson.databind.ObjectMapper SETTER_OBJECT_MAPPER
      • SETTER_OBJECT_MAPPER_ON_FAIL

        public static final com.fasterxml.jackson.databind.ObjectMapper SETTER_OBJECT_MAPPER_ON_FAIL
    • Constructor Detail

      • ObjectMappers

        public ObjectMappers()
    • Method Detail

      • createGetterObjectMapper

        public static final com.fasterxml.jackson.databind.ObjectMapper createGetterObjectMapper​(ClientBindComposer composer)
      • convert

        public static <T> T convert​(java.lang.Object data,
                                    java.lang.Class<? extends T> type)
        Converts any given data into the given type if possible. All unknown fields are ignored.
      • convert

        public static <T> T convert​(ClientBindComposer composer,
                                    java.lang.Object data,
                                    java.lang.reflect.ParameterizedType type)
      • isPropertyLoadStringType

        public static final boolean isPropertyLoadStringType​(java.lang.Class<?> compClz,
                                                             java.lang.String field)