Interface Resource<X extends Exception>
- Type Parameters:
X- an exception that can be thrown on closing the resource
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
CloseableIterator<E>, ResourceIterator<E,X>
Represents a resource which needs to be closed
- Since:
- 0.1.0
- See Also:
-
Method Summary
-
Method Details
-
close
void close() throws X- Specified by:
closein interfaceAutoCloseable- Throws:
X
-