Here you can find the source of compareTimestamps(Timestamp minTimestamp, Timestamp maxTimestamp)
public static boolean compareTimestamps(Timestamp minTimestamp, Timestamp maxTimestamp)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { public static boolean compareTimestamps(Timestamp minTimestamp, Timestamp maxTimestamp) { return maxTimestamp.after(minTimestamp); }/*from w w w . ja v a 2 s. co m*/ }