Module io.jooby
Package io.jooby

Interface SneakyThrows.Predicate<V>

Type Parameters:
V - Input type.
All Superinterfaces:
Predicate<V>
Enclosing class:
SneakyThrows

public static interface SneakyThrows.Predicate<V> extends Predicate<V>
Throwable version of SneakyThrows.Predicate.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    test(V v)
    Apply the predicate.
    boolean
    Apply the predicate.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • tryTest

      boolean tryTest(V v) throws Exception
      Apply the predicate.
      Parameters:
      v - Input value.
      Returns:
      True or false.
      Throws:
      Exception - If something goes wrong.
    • test

      default boolean test(V v)
      Apply the predicate.
      Specified by:
      test in interface Predicate<V>
      Parameters:
      v - Input value.
      Returns:
      True or false.