TimeIterator<V>
, UpscalableIterator<V>
public final class ChopUpscalableIterator<V> extends Object implements UpscalableIterator<V>
Constructor | Description |
---|---|
ChopUpscalableIterator(UpscalableIterator<V> delegate,
Interval interval) |
Instance a new ChopUpscalableIterator for the given delegate and interval.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Test if there is a next element.
|
Sample<V> |
next() |
Move forward the iterator and return the next value.
|
Sample<V> |
peekNext() |
Peek the next element without moving forward the iterator.
|
Sample<V> |
peekUpscaleNext(Interval interval) |
Retrieve a sample which contains the upscaled value, relative
to the given interval, for the next value.
|
String |
toString() |
public ChopUpscalableIterator(UpscalableIterator<V> delegate, Interval interval)
delegate
- Source iteratorinterval
- Chop intervalpublic final boolean hasNext()
TimeIterator
hasNext
in interface TimeIterator<V>
public final Sample<V> peekUpscaleNext(Interval interval)
UpscalableIterator
peekUpscaleNext
in interface UpscalableIterator<V>
interval
- The interval to upscaler the value withpublic final Sample<V> next() throws NoSuchElementException
TimeIterator
next
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementpublic final Sample<V> peekNext() throws NoSuchElementException
TimeIterator
peekNext
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementCopyright © 2019. All rights reserved.