Interface ThrowableSupplier<R>

  • Type Parameters:
    R - output return type
    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<R>
    Throwable Supplier
    Since:
    0.1
    Author:
    PARK Yong Seo
    See Also:
    Supplier
    • Method Summary

      Modifier and Type Method Description
      R get()  
      static <R> java.util.function.Supplier<R> runtime​(ThrowableSupplier<R> supplier)
      throws Exception lambda to throws RuntimeException lambda
    • Method Detail

      • get

        R get()
        throws java.lang.Exception
        Returns:
        output return
        Throws:
        java.lang.Exception
        See Also:
        Supplier
      • runtime

        static <R> java.util.function.Supplier<R> runtime​(ThrowableSupplier<R> supplier)
        throws Exception lambda to throws RuntimeException lambda
        Parameters:
        supplier -
        Returns:
        Since:
        0.6