Interface OMPredicate<T,E extends Exception>

Type Parameters:
T - 입력 type
E - 던질 수 있는 exception type
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 OMPredicate<T,E extends Exception>
checked exception 을 던질 수 있는 Predicate.
Version:
$Revision$, $Date$
Author:
YounghoCho
  • Method Details

    • test

      boolean test(T t) throws E
      DOCUMENT ME!
      Parameters:
      t - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      E - DOCUMENT ME!
    • predicateWrapper

      static <T> Predicate<T> predicateWrapper(OMPredicate<? super T,?> predicate)
      OMPredicate 를 Predicate 로 감싼다.

      TorqueException 은 RuntimeException 으로, 그 외 예외는 UnsupportedOperationException 으로 감싸서 던진다.

      Type Parameters:
      T - 입력 type
      Parameters:
      predicate - 감쌀 predicate
      Returns:
      Predicate