Predicate (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.topology.function

## Interface Predicate<T>

- Type Parameters:
    `T` - Type of the input to the predicate
  All Superinterfaces:
    java.io.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 java.io.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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `test(T tuple)` Test `tuple` against this predicate.

- - ### Method Detail

    - #### 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.