Interface ThrowablePredicate<T>

Type Parameters:
T - input parameter type T
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 interface ThrowablePredicate<T>
Throwable Predicate
Since:
1.0.0
Author:
PARK Yong Seo
See Also:
Predicate
  • Method Summary

    Modifier and Type Method Description
    boolean test​(T t)  
    static <T> java.util.function.Predicate<T> wrap​(ThrowablePredicate<T> throwablePredicate)
    throws Exception lambda to throws RuntimeException lambda
  • Method Details

    • test

      boolean test​(T t) throws java.lang.Exception
      Parameters:
      t - input parameter type T
      Returns:
      test return
      Throws:
      java.lang.Exception
      See Also:
      Predicate
    • wrap

      static <T> java.util.function.Predicate<T> wrap​(ThrowablePredicate<T> throwablePredicate)
      throws Exception lambda to throws RuntimeException lambda
      Parameters:
      throwablePredicate -
      Returns: