public abstract class AdapterIterator<T,U>
extends java.lang.Object
implements java.util.Iterator<T>
Iterator
implementation that works as a filter to another iterator.Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<? extends U> |
core |
private T |
next |
Constructor and Description |
---|
AdapterIterator(java.util.Iterator<? extends U> core) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
adapt(U u) |
private void |
fetch() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
public AdapterIterator(java.util.Iterator<? extends U> core)