Interface CheckedCallable<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 CheckedCallable<T>
    A Callable that allows for checked exceptions.
    • Method Detail

      • call

        T call()
        throws java.lang.Throwable
        Run this callable.
        Throws:
        java.lang.Throwable
      • sneaky

        static <T> java.util.concurrent.Callable<T> sneaky​(CheckedCallable<T> callable)
      • unchecked

        static <T> java.util.concurrent.Callable<T> unchecked​(CheckedCallable<T> callable)
      • unchecked

        static <T> java.util.concurrent.Callable<T> unchecked​(CheckedCallable<T> callable,
                                                              java.util.function.Consumer<java.lang.Throwable> handler)