@Test public void constructor() { DateTime now = DateTime.now(DateTimeZone.UTC); TimeSeriesCollectionPair ts_data = new TimeSeriesCollectionPairInstance(now); assertNotNull(ts_data.getPreviousCollection()); assertNotNull(ts_data.getCurrentCollection()); assertEquals(now, ts_data.getPreviousCollection().getTimestamp()); assertEquals(now, ts_data.getCurrentCollection().getTimestamp()); assertNotSame(ts_data.getPreviousCollection(), ts_data.getCurrentCollection()); assertTrue(ts_data.getCurrentCollection().isEmpty()); assertTrue(ts_data.getPreviousCollection().isEmpty()); }
@Override public TimeSeriesCollection getPreviousCollection() { return impl.getPreviousCollection(); }
TimeSeriesCollectionPairInstance implements MutableTimeSeriesCollectionPair { @Override public TimeSeriesCollection getPreviousCollection() { return impl.getPreviousCollection(); } }
TimeSeriesCollectionPairInstance implements MutableTimeSeriesCollectionPair { @Override public TimeSeriesCollection getPreviousCollection() { return impl.getPreviousCollection(); } TimeSeriesCollectionPairInstance(DateTime now); }
TimeSeriesCollectionPairInstance implements MutableTimeSeriesCollectionPair { @Override public TimeSeriesCollection getPreviousCollection() { return impl.getPreviousCollection(); } TimeSeriesCollectionPairInstance(DateTime now); TimeSeriesCollectionPairInstance startNewCycle(DateTime timestamp, ExpressionLookBack lookback); void initWithHistoricalData(CollectHistory history, ExpressionLookBack lookback); @Override TimeSeriesCollection getPreviousCollection(); @Override Optional<TimeSeriesCollection> getPreviousCollection(int n); @Override Optional<TimeSeriesCollection> getPreviousCollection(Duration duration); @Override TimeSeriesCollectionPair getPreviousCollectionPair(int n); @Override TimeSeriesCollectionPair getPreviousCollectionPair(Duration duration); @Override List<TimeSeriesCollectionPair> getCollectionPairsSince(Duration duration); @Override TimeSeriesCollection getPreviousCollectionAt(DateTime ts); @Override TimeSeriesCollection getPreviousCollectionAt(Duration duration); @Override TimeSeriesCollectionPair getPreviousCollectionPairAt(DateTime ts); @Override TimeSeriesCollectionPair getPreviousCollectionPairAt(Duration duration); @Override Duration getCollectionInterval(); @Override TimeSeriesValueSet getTSValue(SimpleGroupPath name); @Override Optional<TimeSeriesValueSet> getTSDeltaByName(GroupName name); @Override int size(); }
TimeSeriesCollectionPairInstance implements MutableTimeSeriesCollectionPair { @Override public TimeSeriesCollection getPreviousCollection() { return impl.getPreviousCollection(); } TimeSeriesCollectionPairInstance(DateTime now); TimeSeriesCollectionPairInstance startNewCycle(DateTime timestamp, ExpressionLookBack lookback); void initWithHistoricalData(CollectHistory history, ExpressionLookBack lookback); @Override TimeSeriesCollection getPreviousCollection(); @Override Optional<TimeSeriesCollection> getPreviousCollection(int n); @Override Optional<TimeSeriesCollection> getPreviousCollection(Duration duration); @Override TimeSeriesCollectionPair getPreviousCollectionPair(int n); @Override TimeSeriesCollectionPair getPreviousCollectionPair(Duration duration); @Override List<TimeSeriesCollectionPair> getCollectionPairsSince(Duration duration); @Override TimeSeriesCollection getPreviousCollectionAt(DateTime ts); @Override TimeSeriesCollection getPreviousCollectionAt(Duration duration); @Override TimeSeriesCollectionPair getPreviousCollectionPairAt(DateTime ts); @Override TimeSeriesCollectionPair getPreviousCollectionPairAt(Duration duration); @Override Duration getCollectionInterval(); @Override TimeSeriesValueSet getTSValue(SimpleGroupPath name); @Override Optional<TimeSeriesValueSet> getTSDeltaByName(GroupName name); @Override int size();  }