Module io.jooby
Package io.jooby

Interface SneakyThrows.Predicate2<V1,V2>

Type Parameters:
V1 - Input type.
V2 - Input type.
All Superinterfaces:
BiPredicate<V1,V2>
Enclosing class:
SneakyThrows

public static interface SneakyThrows.Predicate2<V1,V2> extends BiPredicate<V1,V2>
Throwable version of SneakyThrows.Predicate.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    test(V1 v1, V2 v2)
    Apply the predicate.
    boolean
    tryTest(V1 v1, V2 v2)
    Apply the predicate.

    Methods inherited from interface java.util.function.BiPredicate

    and, negate, or
  • Method Details

    • tryTest

      boolean tryTest(V1 v1, V2 v2) throws Exception
      Apply the predicate.
      Parameters:
      v1 - Input value.
      v2 - Input value.
      Returns:
      True or false.
      Throws:
      Exception - If something goes wrong.
    • test

      default boolean test(V1 v1, V2 v2)
      Apply the predicate.
      Specified by:
      test in interface BiPredicate<V1,V2>
      Parameters:
      v1 - Input value.
      v2 - Input value.
      Returns:
      True or false.