19 package org.turro.scheduler.task.constraints;
21 import java.util.Date;
22 import java.util.Objects;
60 boolean valid = months.
isValid(date);
61 if(valid) valid = daysOfMonth.
isValid(date);
62 if(valid) valid = weekDays.
isValid(date);
63 if(valid) valid = hours.
isValid(date);
64 if(valid) valid = minutes.
isValid(date);
81 return months.isEmpty() && daysOfMonth.isEmpty() &&
82 weekDays.isEmpty() && hours.isEmpty() && minutes.isEmpty();
90 hash = 37 * hash + Objects.hashCode(this.months);
91 hash = 37 * hash + Objects.hashCode(this.daysOfMonth);
92 hash = 37 * hash + Objects.hashCode(this.weekDays);
93 hash = 37 * hash + Objects.hashCode(this.hours);
94 hash = 37 * hash + Objects.hashCode(this.minutes);
106 if (getClass() != obj.getClass()) {
110 if (!Objects.equals(
this.months, other.months)) {
113 if (!Objects.equals(
this.daysOfMonth, other.daysOfMonth)) {
116 if (!Objects.equals(
this.weekDays, other.weekDays)) {
119 if (!Objects.equals(
this.hours, other.hours)) {
122 return Objects.
equals(this.minutes, other.minutes);
boolean isValid(Date date)
boolean isValid(Date date)
boolean isValid(Date date)
boolean isValid(Date date)
WeekDayConstraint getWeekDays()
boolean equals(Object obj)
MinuteConstraint getMinutes()
MonthConstraint getMonths()
HourConstraint getHours()
boolean isValid(Date date)
DayOfMonthConstraint getDaysOfMonth()
boolean isValid(Date date)