Skip to content

Instantly share code, notes, and snippets.

View dev-yoonjung's full-sized avatar
💖
Servers never die

vvithnne dev-yoonjung

💖
Servers never die
  • Seoul, Republic of Korea
  • 20:28 (UTC +09:00)
View GitHub Profile
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) {