Interface Predicate<T>

Type Parameters:
T - any Java type

public interface Predicate<T>
A Predicate on type T is an object that provides a method "apply" which takes an element of T and returns true or false.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(T x)
    Apply this predicate to the element x of T.
  • Method Details

    • apply

      boolean apply(T x)
      Apply this predicate to the element x of T.
      Parameters:
      x - an element of T
      Returns:
      the result of applying this predicate to x