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:
    0.1
    Author:
    PARK Yong Seo
    See Also:
    Predicate
    • Method Summary

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

      • 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
      • runtime

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