com.ibm.streamsx.topology.function

Interface Predicate<T>

  • Type Parameters:
    T - Type of the input to the predicate
    All Superinterfaces:
    java.io.Serializable


    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 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.
streamsx.topology 1.5 @ IBMStreams GitHub