Here you can find the source of isDateType(Class> targetType)
public static boolean isDateType(Class<?> targetType)
//package com.java2s; //License from project: Apache License public class Main { public static boolean isDateType(Class<?> targetType) { if (targetType == null) return false; return targetType == java.util.Date.class || targetType == java.sql.Timestamp.class || targetType == java.sql.Date.class || targetType == java.sql.Time.class; }/* w w w .j a va2 s.c o m*/ }