Interface ThrowableBiConsumer<T,U>

Type Parameters:
T - the type of the first argument to the operation
U - the type of the second argument to the operation
All Superinterfaces:
BiConsumer<T,U>

public interface ThrowableBiConsumer<T,U> extends BiConsumer<T,U>
BiConsumer but ignores exceptions
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(T t, U u)
     
    void
    acceptSafe(T t, U u)
    Accept with exception

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • accept

      default void accept(T t, U u)
      Specified by:
      accept in interface BiConsumer<T,U>
    • acceptSafe

      void acceptSafe(T t, U u) throws Throwable
      Accept with exception
      Parameters:
      t - the first value
      u - the second value
      Throws:
      Throwable - the exception