Browse Source

Added: Javadoc for Birthday isValid()

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
12e0edc42d
  1. 8
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Birthdate.java

8
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;

Loading…
Cancel
Save