Module io.jooby
Package io.jooby

Interface SneakyThrows.Consumer2<V1,V2>

Type Parameters:
V1 - Input type.
V2 - Input type.
All Superinterfaces:
BiConsumer<V1,V2>
Enclosing class:
SneakyThrows
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 static interface SneakyThrows.Consumer2<V1,V2> extends BiConsumer<V1,V2>
Two argument version of SneakyThrows.Consumer.

This class rethrow any exception using the SneakyThrows.propagate(Throwable) technique.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(V1 v1, V2 v2)
    Performs this operation on the given argument.
    void
    tryAccept(V1 v1, V2 v2)
    Performs this operation on the given argument.

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • tryAccept

      void tryAccept(V1 v1, V2 v2) throws Exception
      Performs this operation on the given argument.
      Parameters:
      v1 - Argument.
      v2 - Argument.
      Throws:
      Exception - If something goes wrong.
    • accept

      default void accept(V1 v1, V2 v2)
      Performs this operation on the given argument.
      Specified by:
      accept in interface BiConsumer<V1,V2>
      Parameters:
      v1 - Argument.
      v2 - Argument.