com.ff.JEvaluator.Functions
Class Case

java.lang.Object
  extended by com.ff.JEvaluator.Functions.Case
All Implemented Interfaces:
BaseFunctionInterface

public class Case
extends java.lang.Object
implements BaseFunctionInterface

Author:
fiorucci To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
 
Fields inherited from interface com.ff.JEvaluator.BaseFunctionInterface
log
 
Constructor Summary
Case()
           
 
Method Summary
 int checkSyntax(java.util.List p)
           
 java.lang.String compute(java.util.List p)
          Evaluates a multicondition, assigning different answers based on the evaluation outcome range(cond1,out1,cond2,out2,...) if(cond1) out1 else if(cond2) out2 else ...
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Case

public Case()
Method Detail

compute

public java.lang.String compute(java.util.List p)
Evaluates a multicondition, assigning different answers based on the evaluation outcome range(cond1,out1,cond2,out2,...) if(cond1) out1 else if(cond2) out2 else ... else "NaN"

Specified by:
compute in interface BaseFunctionInterface

checkSyntax

public int checkSyntax(java.util.List p)
Specified by:
checkSyntax in interface BaseFunctionInterface

getName

public java.lang.String getName()
Specified by:
getName in interface BaseFunctionInterface