@Test public void emptyInputCollectionHasNext() { WindowedTSCIterator iter = new WindowedTSCIterator(emptyIterator(), lookBack, lookForward); assertFalse(iter.hasNext()); }
@Override public boolean hasNext() { return !future.isEmpty() || underlyingNext != null; }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public boolean hasNext() { return !future.isEmpty() || underlyingNext != null; } }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public boolean hasNext() { return !future.isEmpty() || underlyingNext != null; } WindowedTSCIterator(@NonNull Iterator<TimeSeriesCollection> underlying, @NonNull Duration lookBack, @NonNull Duration lookForward); }
WindowedTSCIterator implements Iterator<TimeSeriesCollection> { @Override public boolean hasNext() { return !future.isEmpty() || underlyingNext != null; } 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 boolean hasNext() { return !future.isEmpty() || underlyingNext != null; } 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();  }