T - The type of the arbitrary object which will have an operation invoked
on exiting from a try-with-resources block.public final class AutoClosed<T> extends Object implements AutoCloseable
try-block.| Constructor and Description |
|---|
AutoClosed(T managedObject,
Consumer<? super T> closeOperation) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
object() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic T object()
public void close()
throws X extends Exception
X extends ExceptionAutoCloseable.close()Copyright © 2018 Digipost. All rights reserved.