Class DroolsCondition.ImmediatelyPreviousFilter<PredicateType>

  • Type Parameters:
    PredicateType - type of the predicate (uni, bi, ...) matching the stream
    Enclosing class:
    DroolsCondition<PatternVar,​T extends DroolsRuleStructure<PatternVar>>

    public final class DroolsCondition.ImmediatelyPreviousFilter<PredicateType>
    extends Object
    When two filters follow one another immediately, we merge them into a new Predicate. This is done for performance reasons, as filters are not indexed and therefore we only want to pay the penalty once. This class is a data carrier facilitating that feature.