@Test public void testGetDurationDays() { assertEquals("getDurationDays", 1L, periodRange.getDurationDays()); assertEquals("getDurationDays", 1L, customRange.getDurationDays()); }
int getDurationDays() { if (period == null) { return (int) ((endDate.getTime() + 1000 - startDate.getTime()) / MILLISECONDS_PER_DAY); } return period.getDurationDays(); }
Range implements Serializable { int getDurationDays() { if (period == null) { return (int) ((endDate.getTime() + 1000 - startDate.getTime()) / MILLISECONDS_PER_DAY); } return period.getDurationDays(); } }
Range implements Serializable { int getDurationDays() { if (period == null) { return (int) ((endDate.getTime() + 1000 - startDate.getTime()) / MILLISECONDS_PER_DAY); } return period.getDurationDays(); } private  Range(Period period, Date startDate, Date endDate); }
Range implements Serializable { int getDurationDays() { if (period == null) { return (int) ((endDate.getTime() + 1000 - startDate.getTime()) / MILLISECONDS_PER_DAY); } return period.getDurationDays(); } private  Range(Period period, Date startDate, Date endDate); static Range createCustomRange(Date startDate, Date endDate); static Range parse(String value, DateFormat dateFormat); Period getPeriod(); Date getStartDate(); Date getEndDate(); String getValue(); String getLabel(); @Override String toString(); }
Range implements Serializable { int getDurationDays() { if (period == null) { return (int) ((endDate.getTime() + 1000 - startDate.getTime()) / MILLISECONDS_PER_DAY); } return period.getDurationDays(); } private  Range(Period period, Date startDate, Date endDate); static Range createCustomRange(Date startDate, Date endDate); static Range parse(String value, DateFormat dateFormat); Period getPeriod(); Date getStartDate(); Date getEndDate(); String getValue(); String getLabel(); @Override String toString(); static final char CUSTOM_PERIOD_SEPARATOR; }