This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateValidator { | |
/** | |
* validate that end date is greater than start date. | |
* | |
* @param startDate start date | |
* @param endDate end date | |
* @return constraint violations or an empty set if none | |
*/ | |
public static boolean validateRange(Date startDate, Date endDate) { |