public class CloseableHolder<T>
extends Object
implements AutoCloseable, com.liferay.petra.function.UnsafeSupplier<T,Exception>
| Constructor and Description |
|---|
CloseableHolder(com.liferay.petra.function.UnsafeConsumer<T,Exception> onCloseUnsafeConsumer,
com.liferay.petra.function.UnsafeSupplier<T,Exception> onInitUnsafeSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
get() |