Interface MqlQueryScript<Query>

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 MqlQueryScript<Query>
An example MQL script interface. May be used if only a query object is required, otherwise serves as documentation.

A script interface is a java interface with the following properties:

  • Must be public, non-sealed.
  • Must have a single abstract method which returns a double (FunctionalInterface can enforce this at compile time, but is not required)
  • The abstract method may have 1 or more parameters, but all must be annotated with MqlEnv.
  • The abstract method may not have generic parameters.
  • The interface may use generic parameters, but they must be passed to the MqlCompiler
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    evaluate(Query query)
     
  • Method Details

    • evaluate

      double evaluate(Query query)