/** * Build a list of interval strings. Format of interval string: yyyy-MM-dd' 'HH:mm:ss/yyyy-MM-dd' 'HH:mm:ss * * @param intervals list of intervals to be converted into string * * @return list of interval strings */ public List<String> buildIntervalStringList(Collection<Interval> intervals) { return intervals.stream() .map(it -> DateTimeUtils.intervalToString(it, DateTimeFormatterFactory.getOutputFormatter(), "/")) .collect(Collectors.toList()); }
row.put("dateTime", result.getTimeStamp().toString(DateTimeFormatterFactory.getOutputFormatter()));
row.put("dateTime", result.getTimeStamp().toString(DateTimeFormatterFactory.getOutputFormatter()));