java.io.Serializable, Functionpublic class WeekDayFunction extends java.lang.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 | Description |
|---|---|
WeekDayFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
convertType(int currentDayOfWeek,
int type) |
|
TypeValuePair |
evaluate(FormulaContext context,
ParameterCallback parameters) |
|
java.lang.String |
getCanonicalName() |
public java.lang.String getCanonicalName()
getCanonicalName in interface Functionpublic TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters) throws EvaluationException
evaluate in interface FunctionEvaluationExceptionpublic int convertType(int currentDayOfWeek,
int type)