Interface ThrowableConsumer<T>

Type Parameters:
T - the type of the input to the operation
All Superinterfaces:
Consumer<T>

public interface ThrowableConsumer<T> extends Consumer<T>
Consumer but ignores exceptions
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(T t)
     
    void
    Accept with exception

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      default void accept(T t)
      Specified by:
      accept in interface Consumer<T>
    • acceptSafe

      void acceptSafe(T t) throws Throwable
      Accept with exception
      Parameters:
      t - the input
      Throws:
      Throwable - the exception