@Test(expected = NoSuchElementException.class) public void emptyInputCollectionNext() { WindowedTSCIterator iter = new WindowedTSCIterator(emptyIterator(), lookBack, lookForward); iter.next(); }
@Override public TimeSeriesCollection next() { final TimeSeriesCollection winPresent = updateWindow(); past.addFirst(winPresent); return interpolated(winPresent, past, future); }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public TimeSeriesCollection next() { final TimeSeriesCollection winPresent = updateWindow(); past.addFirst(winPresent); return interpolated(winPresent, past, future); } }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public TimeSeriesCollection next() { final TimeSeriesCollection winPresent = updateWindow(); past.addFirst(winPresent); return interpolated(winPresent, past, future); } WindowedTSCIterator(@NonNull Iterator<TimeSeriesCollection> underlying, @NonNull Duration lookBack, @NonNull Duration lookForward); }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public TimeSeriesCollection next() { final TimeSeriesCollection winPresent = updateWindow(); past.addFirst(winPresent); return interpolated(winPresent, past, future); } WindowedTSCIterator(@NonNull Iterator<TimeSeriesCollection> underlying, @NonNull Duration lookBack, @NonNull Duration lookForward); static Stream<TimeSeriesCollection> stream(Iterator<TimeSeriesCollection> in, Duration lookBack, Duration lookForward); static Stream<TimeSeriesCollection> stream(Stream<TimeSeriesCollection> in, Duration lookBack, Duration lookForward); @Override boolean hasNext(); @Override TimeSeriesCollection next(); }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public TimeSeriesCollection next() { final TimeSeriesCollection winPresent = updateWindow(); past.addFirst(winPresent); return interpolated(winPresent, past, future); } WindowedTSCIterator(@NonNull Iterator<TimeSeriesCollection> underlying, @NonNull Duration lookBack, @NonNull Duration lookForward); static Stream<TimeSeriesCollection> stream(Iterator<TimeSeriesCollection> in, Duration lookBack, Duration lookForward); static Stream<TimeSeriesCollection> stream(Stream<TimeSeriesCollection> in, Duration lookBack, Duration lookForward); @Override boolean hasNext(); @Override TimeSeriesCollection next();  }