Class DateValidator
java.lang.Object
com.markvarga21.studentmanager.util.validation.DateValidator
A utility class which is used to validate dates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateBirthdate
(LocalDate birthdate) Validates the birthdate.static void
Validates the passport date of expiry.static void
Validates the passport date of issue.
-
Method Details
-
validateBirthdate
Validates the birthdate.- Parameters:
birthdate
- The birthdate to be validated.
-
validatePassportIssueDate
Validates the passport date of issue.- Parameters:
date
- The passport date of issue to be validated.
-
validatePassportExpiryDate
Validates the passport date of expiry.- Parameters:
date
- The passport date of expiry to be validated.
-