@Test public void isSetReturnsTrueWhenAnyElementIsSet() { Assert.assertFalse(new PhenoTipsDate(new JSONObject()).isSet()); Assert.assertTrue(new PhenoTipsDate(new JSONObject("{\"decade\":\"2010s\"}")).isSet()); Assert.assertTrue(new PhenoTipsDate(new JSONObject("{\"year\":\"2010\"}")).isSet()); Assert.assertTrue(new PhenoTipsDate(new JSONObject("{\"month\":2}")).isSet()); Assert.assertTrue(new PhenoTipsDate(new JSONObject("{\"day\":2}")).isSet()); }
public boolean isSet() { return !(this.year == null && this.month == null && this.day == null); }
PhenoTipsDate { public boolean isSet() { return !(this.year == null && this.month == null && this.day == null); } }
PhenoTipsDate { public boolean isSet() { return !(this.year == null && this.month == null && this.day == null); } PhenoTipsDate(Date date);  PhenoTipsDate(JSONObject jsonFuzzyDate);  PhenoTipsDate(String phenoTipsDateString); }
PhenoTipsDate { public boolean isSet() { return !(this.year == null && this.month == null && this.day == null); } PhenoTipsDate(Date date);  PhenoTipsDate(JSONObject jsonFuzzyDate);  PhenoTipsDate(String phenoTipsDateString); JSONObject toJSON(); Date toEarliestPossibleISODate(); @Override String toString(); String toYYYYMMDDString(); boolean isSet(); }
PhenoTipsDate { public boolean isSet() { return !(this.year == null && this.month == null && this.day == null); } PhenoTipsDate(Date date);  PhenoTipsDate(JSONObject jsonFuzzyDate);  PhenoTipsDate(String phenoTipsDateString); JSONObject toJSON(); Date toEarliestPossibleISODate(); @Override String toString(); String toYYYYMMDDString(); boolean isSet(); static final String JSON_YEAR_FIELDNAME; static final String JSON_MONTH_FIELDNAME; static final String JSON_DAY_FIELDNAME; static final String JSON_RANGE_FIELDNAME; static final String JSON_RANGE_YEARS; static final Pattern DATE_STRING_REGEXP; }