Here you can find the source of isSimpleType(Class> type)
public static boolean isSimpleType(Class<?> type)
//package com.java2s; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.Date; public class Main { private static final Class<?>[] SIMPLE_TYPES = { int.class, Integer.class, long.class, Long.class, float.class, Float.class, double.class, Double.class, BigDecimal.class, String.class, Date.class, Timestamp.class, byte[].class }; public static boolean isSimpleType(Class<?> type) { for (Class<?> simpleType : SIMPLE_TYPES) { if (simpleType.equals(type)) return true; }/*from ww w . j av a 2 s . co m*/ return false; } }