Package com.mchange.v1.util
Interface UIterator
-
- All Superinterfaces:
ClosableResource
- All Known Subinterfaces:
FileIterator
,UnreliableIterator
- All Known Implementing Classes:
CBPCursor
,SimpleCursor
,WrapperUIterator
public interface UIterator extends ClosableResource
Incomplete parent of "Unreliable Iterator" This is often bound to a scarce resource! Don't forget to close it when you are done!!! This interface is not intended to be implemented directly, but to be extended by subinterfaces that narrow the exceptions reasonably.
-
-
Method Summary
All Methods Instance Methods Abstract 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()
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.lang.Exception
- Throws:
java.lang.Exception
-
next
java.lang.Object next() throws java.lang.Exception
- Throws:
java.lang.Exception
-
remove
void remove() throws java.lang.Exception
- Throws:
java.lang.Exception
-
close
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
- Throws:
java.lang.Exception
-
-