Package com.mchange.v1.util
Class WrapperUIterator
- java.lang.Object
-
- com.mchange.v1.util.WrapperUIterator
-
- All Implemented Interfaces:
ClosableResource
,UIterator
public abstract class WrapperUIterator extends java.lang.Object implements UIterator
This implementation does not yet support removes once hasNext() has been called... will add if necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Object
SKIP_TOKEN
-
Constructor Summary
Constructors Constructor Description WrapperUIterator(UIterator inner)
WrapperUIterator(UIterator inner, boolean supports_remove)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
forces the release of any resources that might be associated with this object.boolean
hasNext()
java.lang.Object
next()
void
remove()
protected abstract java.lang.Object
transformObject(java.lang.Object o)
return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator.
-
-
-
Method Detail
-
hasNext
public boolean hasNext() throws java.lang.Exception
-
next
public java.lang.Object next() throws java.util.NoSuchElementException, java.lang.Exception
-
remove
public void remove() throws java.lang.Exception
-
close
public void close() throws java.lang.Exception
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Specified by:
close
in interfaceUIterator
- Throws:
java.lang.Exception
-
transformObject
protected abstract java.lang.Object transformObject(java.lang.Object o) throws java.lang.Exception
return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator. (we don't use null, because we want to support iterators over null-accepting Collections.)- Throws:
java.lang.Exception
-
-