Interface ThrowableConsumer<T>

Type Parameters:
T - input parameter type 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 ThrowableConsumer<T>
Throwable Consumer
Since:
1.0.0
Author:
PARK Yong Seo
See Also:
Consumer
  • Method Summary

    Modifier and Type Method Description
    void accept​(T t)  
    static <T> java.util.function.Consumer<T> wrap​(ThrowableConsumer<T> consumer)
    throws Exception lambda to throws RuntimeException lambda
  • Method Details

    • accept

      void accept​(T t) throws java.lang.Exception
      Parameters:
      t - input parameter type T
      Throws:
      java.lang.Exception
      See Also:
      Consumer
    • wrap

      static <T> java.util.function.Consumer<T> wrap​(ThrowableConsumer<T> consumer)
      throws Exception lambda to throws RuntimeException lambda
      Parameters:
      consumer -
      Returns: