TimeIterator<V>
, UpscalableIterator<V>
public class UpscalerIterator<V> extends Object implements UpscalableIterator<V>
Upscaler
into a UpscalableIterator
.Constructor | Description |
---|---|
UpscalerIterator() |
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.
|
public Sample<V> next() throws NoSuchElementException
TimeIterator
next
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementpublic Sample<V> peekNext() throws NoSuchElementException
TimeIterator
peekNext
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementpublic boolean hasNext()
TimeIterator
hasNext
in interface TimeIterator<V>
public Sample<V> peekUpscaleNext(Interval interval)
UpscalableIterator
peekUpscaleNext
in interface UpscalableIterator<V>
interval
- The interval to upscaler the value withCopyright © 2019. All rights reserved.