S
- Source value type to adapt fromD
- Target value type to adapt toTimeIterator<D>
SampleAdapterTimeIterator
, ValueAdapterTimeIterator
@Deprecated public abstract class AdapterTimeIterator<S,D> extends Object implements TimeIterator<D>
The adapt function is called once per sample and its result is cached to serve multiple next or peekNext calls.
Constructor | Description |
---|---|
AdapterTimeIterator(TimeIterator<S> delegate) |
Deprecated.
Build a new adapter around the given delegate.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract Sample<D> |
adapt(Sample<S> sample) |
Deprecated.
Perform the adaptation.
|
boolean |
hasNext() |
Deprecated.
Test if there is a next element.
|
Sample<D> |
next() |
Deprecated.
Move forward the iterator and return the next value.
|
Sample<D> |
peekNext() |
Deprecated.
Peek the next element without moving forward the iterator.
|
String |
toString() |
Deprecated.
|
public AdapterTimeIterator(TimeIterator<S> delegate)
delegate
- Source iteratorprotected abstract Sample<D> adapt(Sample<S> sample)
sample
- Sample to adaptpublic final Sample<D> next() throws NoSuchElementException
TimeIterator
next
in interface TimeIterator<S>
NoSuchElementException
- If there is no next elementpublic final Sample<D> peekNext() throws NoSuchElementException
TimeIterator
peekNext
in interface TimeIterator<S>
NoSuchElementException
- If there is no next elementpublic final boolean hasNext()
TimeIterator
hasNext
in interface TimeIterator<S>
Copyright © 2019. All rights reserved.