Interface Predicate<T>

All Known Implementing Classes:
AllOf, AnyOf, Anything, DelegatingPredicate, Equals, Having, In, LeftWith, NoneOf, Not, Nothing, PairWith, RightWith, SameAs, SingleWith
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 Predicate<T>
A special function which returns true whenever the argument matches this predicate.

Predicates must be immutable.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    satisfiedBy(T testedInstance)
    Returns whether the given instance satisfies this predicate.
  • Method Details

    • satisfiedBy

      boolean satisfiedBy(T testedInstance)
      Returns whether the given instance satisfies this predicate.