Package net.vleo.timel.iterator
Class SingletonUpscalableTimeIterator<V>
- java.lang.Object
-
- net.vleo.timel.iterator.AbstractSingletonTimeIterator<V>
-
- net.vleo.timel.iterator.SingletonUpscalableTimeIterator<V>
-
- All Implemented Interfaces:
TimeIterator<V>
,UpscalableIterator<V>
public final class SingletonUpscalableTimeIterator<V> extends AbstractSingletonTimeIterator<V> implements UpscalableIterator<V>
UpscalableIterator
that will return a single sample.- Author:
- Andrea Leofreddi
-
-
Constructor Summary
Constructors Constructor Description SingletonUpscalableTimeIterator(net.vleo.timel.impl.upscaler.Upscaler<V> upscaler, Sample<V> value)
-
Method Summary
Modifier and Type Method Description Sample<V>
peekUpscaleNext(Interval interval)
Retrieve a sample which contains the upscaled value, relative to the given interval, for the next value.-
Methods inherited from class net.vleo.timel.iterator.AbstractSingletonTimeIterator
hasNext, next, peekNext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.vleo.timel.iterator.TimeIterator
hasNext, next, peekNext
-
-
-
-
Method Detail
-
peekUpscaleNext
public Sample<V> peekUpscaleNext(Interval interval)
Description copied from interface:UpscalableIterator
Retrieve a sample which contains the upscaled value, relative to the given interval, for the next value. As this operation peeks the next value, the iterator is not moved forward.- Specified by:
peekUpscaleNext
in interfaceUpscalableIterator<V>
- Parameters:
interval
- The interval to upscaler the value with- Returns:
- The upscaled next
-
-