Class Average

java.lang.Object
com.ezylang.evalex.functions.AbstractFunction
me.hsgamer.hscore.expression.number.Average
All Implemented Interfaces:
com.ezylang.evalex.functions.FunctionIfc

@FunctionParameter(name="value", isVarArg=true) public class Average extends com.ezylang.evalex.functions.AbstractFunction
Calculate the average number
Ex: AVG(1, 2, 3, 4, 5)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.ezylang.evalex.data.EvaluationValue
    evaluate(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token token, com.ezylang.evalex.data.EvaluationValue... evaluationValues)
     

    Methods inherited from class com.ezylang.evalex.functions.AbstractFunction

    getFunctionParameterDefinitions, hasVarArgs, validatePreEvaluation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ezylang.evalex.functions.FunctionIfc

    isParameterLazy
  • Constructor Details

    • Average

      public Average()
  • Method Details

    • evaluate

      public com.ezylang.evalex.data.EvaluationValue evaluate(com.ezylang.evalex.Expression expression, com.ezylang.evalex.parser.Token token, com.ezylang.evalex.data.EvaluationValue... evaluationValues)