|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.formula.function.datetime.WeekDayFunction
public class WeekDayFunction
This function extracts the day of week from a date.
The returned value depends of the Type passed as second argument using the following table: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 Summary | |
---|---|
WeekDayFunction()
|
Method Summary | |
---|---|
int |
convertType(int currentDayOfWeek,
int type)
|
TypeValuePair |
evaluate(FormulaContext context,
ParameterCallback parameters)
|
java.lang.String |
getCanonicalName()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeekDayFunction()
Method Detail |
---|
public java.lang.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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |