@Test public void simpleDates() { ValueFilterDateRangeLength vfdrl = new ValueFilterDateRangeLength(); assertEquals("11", vfdrl.filter("090910-090920")); assertEquals("42", vfdrl.filter("090810-090920")); }
@Override public String filter(String value) { if (value != null) { try { return Long.toString(countDays(value)); } catch (IllegalArgumentException e) { return null; } } return value; }
ValueFilterDateRangeLength extends StringFilter { @Override public String filter(String value) { if (value != null) { try { return Long.toString(countDays(value)); } catch (IllegalArgumentException e) { return null; } } return value; } }
ValueFilterDateRangeLength extends StringFilter { @Override public String filter(String value) { if (value != null) { try { return Long.toString(countDays(value)); } catch (IllegalArgumentException e) { return null; } } return value; } ValueFilterDateRangeLength();  ValueFilterDateRangeLength(String dateFormat, String dateSep, String diffUnit); }
ValueFilterDateRangeLength extends StringFilter { @Override public String filter(String value) { if (value != null) { try { return Long.toString(countDays(value)); } catch (IllegalArgumentException e) { return null; } } return value; } ValueFilterDateRangeLength();  ValueFilterDateRangeLength(String dateFormat, String dateSep, String diffUnit); @Override String filter(String value); }
ValueFilterDateRangeLength extends StringFilter { @Override public String filter(String value) { if (value != null) { try { return Long.toString(countDays(value)); } catch (IllegalArgumentException e) { return null; } } return value; } ValueFilterDateRangeLength();  ValueFilterDateRangeLength(String dateFormat, String dateSep, String diffUnit); @Override String filter(String value);  }