Interface ThrowableCollector.ExecutableWithResult<T>

  • Type Parameters:
    T - result type
    Enclosing class:
    ThrowableCollector<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 static interface ThrowableCollector.ExecutableWithResult<T>
    Functional interface for an executable block of code that may throw a Throwable.
    • Method Detail

      • execute

        T execute()
           throws Throwable
        Execute this executable, potentially throwing a Throwable that signals abortion or failure.
        Returns:
        executable result
        Throws:
        Throwable