public static Map<Class<?>, TypeHandler<?>> getDefaultMappings() {
        Map<Class<?>, TypeHandler<?>> mappings = new HashMap<Class<?>, TypeHandler<?>>();
        mappings.put(Integer.class, NUMBER_AS_INTEGER);
        mappings.put(AtomicInteger.class, NUMBER_AS_INTEGER);
        mappings.put(Long.class, NUMBER_AS_LONG);
        mappings.put(AtomicLong.class, NUMBER_AS_LONG);
        mappings.put(Short.class, NUMBER_AS_INTEGER);
        mappings.put(Byte.class, NUMBER_AS_INTEGER);
        mappings.put(Boolean.class, BOOLEAN_AS_INT);
        mappings.put(AtomicBoolean.class, ATOMIC_BOOLEAN_AS_INT);
        mappings.put(Double.class, NUMBER_AS_DOUBLE);
        mappings.put(Float.class, NUMBER_AS_FLOAT);
        return mappings;
    }
public static Map < Class < ? > , TypeHandler < ? > > getDefaultMappings ( ) { Map < Class < ? > , TypeHandler < ? > > mappings = new HashMap < Class < ? > , TypeHandler < ? > > ( ) ; mappings . put ( Integer . class , NUMBER_AS_INTEGER ) ; mappings . put ( AtomicInteger . class , NUMBER_AS_INTEGER ) ; mappings . put ( Long . class , NUMBER_AS_LONG ) ; mappings . put ( AtomicLong . class , NUMBER_AS_LONG ) ; mappings . put ( Short . class , NUMBER_AS_INTEGER ) ; mappings . put ( Byte . class , NUMBER_AS_INTEGER ) ; mappings . put ( Boolean . class , BOOLEAN_AS_INT ) ; mappings . put ( AtomicBoolean . class , ATOMIC_BOOLEAN_AS_INT ) ; mappings . put ( Double . class , NUMBER_AS_DOUBLE ) ; mappings . put ( Float . class , NUMBER_AS_FLOAT ) ; return mappings ; }
@return a standard set of handlers to convert some common Java types (including the
java.util.concurrent Atomic primitives) to the most suitable default TypeHandler,
without a loss of precision.