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

Public Member Functions

boolean isValid (Date date)
 
boolean needsRefresh ()
 
Integer getHour (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/HourConstraint.java.

Member Function Documentation

◆ getHour()

Integer org.turro.scheduler.task.constraints.HourConstraint.getHour ( Date  date)

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

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

◆ isValid()

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

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

34  {
35  refresh = false;
36  Integer h = getHour(date);
37  if(h != null && contains(h)) {
38  refresh = !h.equals(lastCheck);
39  lastCheck = h;
40  return true;
41  }
42  lastCheck = h;
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.HourConstraint.needsRefresh ( )

Definition at line 46 of file task/constraints/HourConstraint.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: