Package dev.brachtendorf
Interface PlainAutoCloseable
-
- All Superinterfaces:
AutoCloseable
public interface PlainAutoCloseable extends AutoCloseable
AutoAutoCloseablewithout throwing an exceptionAn object that may hold resources (such as file or socket handles) until it is closed. The
close()method of anAutoCloseableobject is called automatically when exiting atry-with-resources block for which the object has been declared in the resource specification header. This construction ensures prompt release, avoiding resource exhaustion exceptions and errors that may otherwise occur.- Author:
- Kilian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()
-
-
-
Method Detail
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
-