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:
1.0.0
Author:
PARK Yong Seo
See Also:
Supplier
  • Method Summary

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

    • get

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

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