Interface Rule

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 Rule
A boolean condition over a bar index, typically closing over precomputed indicator arrays. Rules compose with and(com.quantfinlib.dsl.Rule), or(com.quantfinlib.dsl.Rule), not().
  • Method Summary

    Modifier and Type
    Method
    Description
    default Rule
    and(Rule other)
     
    boolean
    isSatisfied(int index)
     
    default Rule
    not()
     
    default Rule
    or(Rule other)
     
  • Method Details

    • isSatisfied

      boolean isSatisfied(int index)
    • and

      default Rule and(Rule other)
    • or

      default Rule or(Rule other)
    • not

      default Rule not()