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 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 2.1 @ IBMStreams GitHub