public class WeekDayFunction extends Object implements Function
Day of Week | Type=1 Result | Type=2 Result | Type=3 Result |
---|---|---|---|
Sunday | 1 | 7 | 6 |
Monday | 2 | 1 | 0 |
Tuesday | 3 | 2 | 1 |
Wednesday | 4 | 3 | 2 |
Thursday | 5 | 4 | 3 |
Friday | 6 | 5 | 4 |
Saturday | 7 | 6 | 5 |
Constructor and Description |
---|
WeekDayFunction() |
Modifier and Type | Method and Description |
---|---|
int |
convertType(int currentDayOfWeek,
int type) |
TypeValuePair |
evaluate(FormulaContext context,
ParameterCallback parameters) |
String |
getCanonicalName() |
public String getCanonicalName()
getCanonicalName
in interface Function
public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters) throws EvaluationException
evaluate
in interface Function
EvaluationException
public int convertType(int currentDayOfWeek, int type)