Package org.pitest.sequence
Interface Match<T>
-
- Type Parameters:
T- Type to match
- 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 Match<T>
Predicate with additional context. Implemented as abstract class as we're still on Java 6 and don't have default methods
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <T> Match<T>always()default Match<T>and(Match<T> other)default Predicate<T>asPredicate()Convert to plain predicate with no contextstatic <T> Match<T>isEqual(Object targetRef)default Match<T>negate()static <T> Match<T>never()default Match<T>or(Match<T> other)Resulttest(Context c, T t)
-