S
- Source value Java typeD
- Target value Java typeTimeIterator<S>
public final class SampleAdapterTimeIterator<S,D> extends AdapterTimeIterator<S,D>
The adapter function is called once per sample and its result is cached to serve multiple next or peekNext calls.
Constructor | Description |
---|---|
SampleAdapterTimeIterator(TimeIterator<S> delegate,
Function<Sample<S>,Sample<D>> adapter) |
Build a new adapter around the given delegate, using the given mapping adapter function.
|
Modifier and Type | Method | Description |
---|---|---|
protected Sample<D> |
adapt(Sample<S> sample) |
Perform the adaptation.
|
hasNext, next, peekNext, toString
protected Sample<D> adapt(Sample<S> sample)
AdapterTimeIterator
adapt
in class AdapterTimeIterator<S,D>
sample
- Sample to adaptCopyright © 2019. All rights reserved.