Package com.github.cafapi.common.api
Class QuietResource<T extends AutoCloseable>
java.lang.Object
com.github.cafapi.common.api.QuietResource<T>
- Type Parameters:
T
- the class to close quietly
- All Implemented Interfaces:
AutoCloseable
Utility class for use with try-with-resources, for classes where the close operation may throw an exception, but this is not a useful
check.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QuietResource
-
-
Method Details
-
get
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-