public class BirthDayGenerator extends java.lang.Object implements Generator<BirthDayGenerator.BirthDay>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
BirthDayGenerator.BirthDay |
static class |
BirthDayGenerator.Month |
| Constructor and Description |
|---|
BirthDayGenerator() |
| Modifier and Type | Method and Description |
|---|---|
BirthDayGenerator.BirthDay |
getRandom()
Generates a random Birth Date
|
static boolean |
isLeapYear(int year)
Checks is a year is a leap year
|
public static boolean isLeapYear(int year)
year - the year as an number (for example 2004)public BirthDayGenerator.BirthDay getRandom()
getRandom in interface Generator<BirthDayGenerator.BirthDay>