getLength method
Implementation
int getLength() {
int i = 0;
if (year != null) i += 1;
if (month != null) i += 1;
if (day != null) i += 1;
return i;
}
int getLength() {
int i = 0;
if (year != null) i += 1;
if (month != null) i += 1;
if (day != null) i += 1;
return i;
}