@Test public void testGetValue() { assertNotNull("getValue", periodRange.getValue()); assertNotNull("getValue", customRange.getValue()); }
public String getValue() { if (period == null) { final DateFormat dateFormat = I18N.createDateFormat(); return dateFormat.format(startDate) + CUSTOM_PERIOD_SEPARATOR + dateFormat.format(endDate); } return period.getCode(); }
Range implements Serializable { public String getValue() { if (period == null) { final DateFormat dateFormat = I18N.createDateFormat(); return dateFormat.format(startDate) + CUSTOM_PERIOD_SEPARATOR + dateFormat.format(endDate); } return period.getCode(); } }
Range implements Serializable { public String getValue() { if (period == null) { final DateFormat dateFormat = I18N.createDateFormat(); return dateFormat.format(startDate) + CUSTOM_PERIOD_SEPARATOR + dateFormat.format(endDate); } return period.getCode(); } private  Range(Period period, Date startDate, Date endDate); }
Range implements Serializable { public String getValue() { if (period == null) { final DateFormat dateFormat = I18N.createDateFormat(); return dateFormat.format(startDate) + CUSTOM_PERIOD_SEPARATOR + dateFormat.format(endDate); } return period.getCode(); } 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 { public String getValue() { if (period == null) { final DateFormat dateFormat = I18N.createDateFormat(); return dateFormat.format(startDate) + CUSTOM_PERIOD_SEPARATOR + dateFormat.format(endDate); } return period.getCode(); } 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; }