Interface ExceptionalResourceSupplier<R extends AutoCloseable>

  • Type Parameters:
    R - actual, inherited type of AutoCloseable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ExceptionalResourceSupplier<R extends AutoCloseable>
    Special supplier that returns an instance of AutoCloseable
    Author:
    Peter Kurfer
    • Method Detail

      • get

        R get()
        throws Exception
        Supplier method - may throw an exception
        Returns:
        AutoCloseable instance
        Throws:
        Exception - well...don't know why ¯\_(ツ)_/¯