@Test public void testParserOnTimeInstantFormat22() throws ParseException { final SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); df.setTimeZone(TimeZone.getTimeZone("GMT")); String timeInstant = "20111010T101120Z"; List<Date> time = PARSER.parse(timeInstant); assertEquals(1, time.size()); assertEquals("2011-10-10T10:11:20.000Z", df.format(time.get(0))); }
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);  }