Class SimpleCondition<T>

  • All Implemented Interfaces:
    Serializable, FilterFunction<T>, Function
    Direct Known Subclasses:
    SubtypeCondition

    @PublicEvolving
    public abstract class SimpleCondition<T>
    extends IterativeCondition<T>
    implements FilterFunction<T>
    A user-defined condition that decides if an element should be accepted in the pattern or not. Accepting an element also signals a state transition for the corresponding NFA.

    Contrary to the IterativeCondition, conditions that extend this class do not have access to the previously accepted elements in the pattern. Conditions that extend this class are simple filter(...) functions that decide based on the properties of the element at hand.

    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleCondition

        public SimpleCondition()