public abstract class TransformingIteratorWrapper<Original,Transformed> extends LookaheadIterator<Transformed>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Iterator<Original> |
inner |
next| Constructor and Description |
|---|
TransformingIteratorWrapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
lookahead()
Caches the next item if available.
|
protected void |
noteExhausted()
Any cleanup to occur when hasNext() is about to return false
|
protected abstract Transformed |
transform(Original object) |
hasNext, next, removeprotected java.util.Iterator<Original> inner
protected boolean lookahead()
LookaheadIteratorlookahead in class LookaheadIterator<Transformed>protected void noteExhausted()
protected abstract Transformed transform(Original object)
object - Object to transform.Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.