public abstract class WrapperUIterator extends Object implements UIterator
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
SKIP_TOKEN |
| Constructor and Description |
|---|
WrapperUIterator(UIterator inner) |
WrapperUIterator(UIterator inner,
boolean supports_remove) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
forces the release of any resources that might be
associated with this object.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
protected abstract Object |
transformObject(Object o)
return SKIP_TOKEN to indicate an object should be
skipped, i.e., not exposed as part of the iterator.
|
protected static final Object SKIP_TOKEN
public WrapperUIterator(UIterator inner, boolean supports_remove)
public WrapperUIterator(UIterator inner)
public boolean hasNext()
throws Exception
public Object next() throws NoSuchElementException, Exception
next in interface UIteratorNoSuchElementExceptionExceptionpublic void remove()
throws Exception
public void close()
throws Exception
ClosableResourceclose in interface ClosableResourceclose in interface UIteratorException