Interface ResultPredicate

All Superinterfaces:
Predicate<Result>
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 ResultPredicate extends Predicate<Result>
Marker interface for a throw predicate.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ResultPredicate
    Predicate that throws if the result code is not ResultCode.SUCCESS.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Test a result and throw if the test succeeds.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or, test