UniqueId id1 = UniqueId.of("Test", "1");
UniqueId id2 = UniqueId.of("Test", "2");
UniqueId id3 = UniqueId.of("Test", "3");
LocalDateDoubleTimeSeriesBuilder tsBuilder = ImmutableLocalDateDoubleTimeSeries.builder();
tsBuilder.put(LocalDate.parse("2013-06-04"), 14.0);
tsBuilder.put(LocalDate.parse("2013-06-05"), 15.0);
tsBuilder.put(LocalDate.parse("2013-06-06"), 16.0);
tsBuilder.put(LocalDate.parse("2013-06-07"), 17.0);
tsBuilder.put(LocalDate.parse("2013-06-08"), 18.0);
source.updateTimeSeries(id1, tsBuilder.build());
tsBuilder = ImmutableLocalDateDoubleTimeSeries.builder();
tsBuilder.put(LocalDate.parse("2013-06-04"), 24.0);
tsBuilder.put(LocalDate.parse("2013-06-05"), 25.0);
tsBuilder.put(LocalDate.parse("2013-06-06"), 26.0);
tsBuilder.put(LocalDate.parse("2013-06-07"), 27.0);
tsBuilder.put(LocalDate.parse("2013-06-08"), 28.0);
source.updateTimeSeries(id2, tsBuilder.build());
tsBuilder = ImmutableLocalDateDoubleTimeSeries.builder();
tsBuilder.put(LocalDate.parse("2013-06-04"), 34.0);
tsBuilder.put(LocalDate.parse("2013-06-05"), 35.0);
tsBuilder.put(LocalDate.parse("2013-06-06"), 36.0);
tsBuilder.put(LocalDate.parse("2013-06-07"), 37.0);
tsBuilder.put(LocalDate.parse("2013-06-08"), 38.0);
source.updateTimeSeries(id3, tsBuilder.build());
Pair<LocalDate, Double> pair = null;
HistoricalTimeSeries hts = null;
LocalDateDoubleTimeSeries ts = null;