19 package org.turro.scheduler.task.constraints;
21 import java.util.Calendar;
22 import java.util.Date;
23 import java.util.HashSet;
31 private Integer lastCheck;
32 private boolean refresh;
37 if(h !=
null && contains(h)) {
38 refresh = !h.equals(lastCheck);
51 Calendar c = Calendar.getInstance();
53 return c.get(Calendar.HOUR_OF_DAY);
boolean isValid(Date date)
Integer getHour(Date date)