BrightSide Workbench Full Report + Source Code
org.turro.scheduler.task.constraints.DayOfMonthConstraint Class Reference
Inheritance diagram for org.turro.scheduler.task.constraints.DayOfMonthConstraint:
Collaboration diagram for org.turro.scheduler.task.constraints.DayOfMonthConstraint:

Public Member Functions

boolean isValid (Date date)
 
boolean needsRefresh ()
 
Integer getDayOfMonth (Date date)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file task/constraints/DayOfMonthConstraint.java.

Member Function Documentation

◆ getDayOfMonth()

Integer org.turro.scheduler.task.constraints.DayOfMonthConstraint.getDayOfMonth ( Date  date)

Definition at line 50 of file task/constraints/DayOfMonthConstraint.java.

50  {
51  Calendar c = Calendar.getInstance();
52  c.setTime(date);
53  return c.get(Calendar.DAY_OF_MONTH);
54  }
Here is the caller graph for this function:

◆ isValid()

boolean org.turro.scheduler.task.constraints.DayOfMonthConstraint.isValid ( Date  date)

Definition at line 34 of file task/constraints/DayOfMonthConstraint.java.

34  {
35  refresh = false;
36  Integer dm = getDayOfMonth(date);
37  if(dm != null && contains(dm)) {
38  refresh = !dm.equals(lastCheck);
39  lastCheck = dm;
40  return true;
41  }
42  lastCheck = dm;
43  return isEmpty();
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ needsRefresh()

boolean org.turro.scheduler.task.constraints.DayOfMonthConstraint.needsRefresh ( )

Definition at line 46 of file task/constraints/DayOfMonthConstraint.java.

46  {
47  return refresh;
48  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: