Interface Predicate<T>

Type Parameters:
T - Type of the input to the predicate
All Superinterfaces:
Serializable
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> extends Serializable
A function that tests a tuple.
If an implementation also implements java.lang.AutoCloseable then it will be automatically closed when the application terminates.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(T tuple)
    Test tuple against this predicate.
  • Method Details

    • test

      boolean test(T tuple)
      Test tuple against this predicate.
      Parameters:
      tuple - Tuple to be tested.
      Returns:
      True if the tuple passed this predicate, false otherwise.