From 12e0edc42ddd94273c7415d0724963f21154e2b1 Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 22:36:19 +0100 Subject: [PATCH] Added: Javadoc for Birthday isValid() --- .../src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java index 32ed901..9ab68bf 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java @@ -42,6 +42,14 @@ public class Birthdate { year = y; } + /** + * + * @param DD + * @param MM + * @param YYYY + * @return true if date is valid. + * @return false if date is invalid. + */ public boolean isValid(int DD, int MM, int YYYY) { if (DD < 1 || DD > 31) { return false;