Java tutorial
//package com.java2s; public class Main { @SuppressWarnings("rawtypes") private static boolean isBasicType(Class typeClass) { if (typeClass.equals(Integer.class) || typeClass.equals(Long.class) || typeClass.equals(Float.class) || typeClass.equals(Double.class) || typeClass.equals(Boolean.class) || typeClass.equals(Byte.class) || typeClass.equals(Short.class) || typeClass.equals(String.class)) { return true; } else { return false; } } }