Interface ThrowableSupplier<T>

  • 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 ThrowableSupplier<T>
    Represents a supplier of results that can throw any errors/exceptions.
    • Method Detail

      • get

        T get()
        throws java.lang.Throwable
        Gets a result than can throw exceptions.
        Returns:
        a result
        Throws:
        java.lang.Throwable - any error/exception.