Interface MochaFunction

All Superinterfaces:
MochaCompiledFunction
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 MochaFunction extends MochaCompiledFunction
A MochaCompiledFunction that can be evaluated without arguments.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Evaluates this function.
    static @NotNull MochaFunction
    nop()
     
  • Method Details

    • nop

      @NotNull static @NotNull MochaFunction nop()
    • evaluate

      double evaluate()
      Evaluates this function.
      Returns:
      The result of the evaluation.
      Since:
      3.0.0