Package com.persequor

Interface UncheckedAutoClosable

All Superinterfaces:
AutoCloseable

public interface UncheckedAutoClosable extends AutoCloseable
This interface is a variant of AutoCloseable that allows the close() method to throw a RuntimeException instead of a checked exception. This is useful in cases where you want to use try-with-resources but your close method doesn't throw any checked exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void