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

Public Member Functions

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

Member Function Documentation

◆ getMinute()

Integer org.turro.scheduler.task.constraints.MinuteConstraint.getMinute ( Date  date)

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

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

◆ isValid()

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

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

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

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