@Test public void testParserOnNullTime() throws ParseException { List<Date> time = PARSER.parse(null); assertTrue(time.isEmpty()); }
public List<Date> parse(String value) throws ParseException { Collection results = parser.parse(value); List<Date> dates = (List<Date>) results.stream() .filter(o -> o instanceof Date) .map(o -> (Date) o) .collect(Collectors.toList()); return dates; }
TimeParser { public List<Date> parse(String value) throws ParseException { Collection results = parser.parse(value); List<Date> dates = (List<Date>) results.stream() .filter(o -> o instanceof Date) .map(o -> (Date) o) .collect(Collectors.toList()); return dates; } }
TimeParser { public List<Date> parse(String value) throws ParseException { Collection results = parser.parse(value); List<Date> dates = (List<Date>) results.stream() .filter(o -> o instanceof Date) .map(o -> (Date) o) .collect(Collectors.toList()); return dates; } TimeParser(); }
TimeParser { public List<Date> parse(String value) throws ParseException { Collection results = parser.parse(value); List<Date> dates = (List<Date>) results.stream() .filter(o -> o instanceof Date) .map(o -> (Date) o) .collect(Collectors.toList()); return dates; } TimeParser(); List<Date> parse(String value); }
TimeParser { public List<Date> parse(String value) throws ParseException { Collection results = parser.parse(value); List<Date> dates = (List<Date>) results.stream() .filter(o -> o instanceof Date) .map(o -> (Date) o) .collect(Collectors.toList()); return dates; } TimeParser(); List<Date> parse(String value);  }