/** * Compare the next fire time of this <code>Trigger</code> to that of another by comparing their * keys, or in other words, sorts them according to the natural (i.e. alphabetical) order of their * keys. */ @Override public int compareTo(Trigger other) { if (other.getName() == null && getName() == null) { return 0; } if (other.getName() == null) { return -1; } if (getName() == null) { return 1; } return getName().compareTo(other.getName()); }
/** * Trigger equality is based upon the equality of the Trigger name. * * @return true if the key of this Trigger equals that of the given Trigger. */ @Override public boolean equals(Object o) { if (!(o instanceof Trigger)) { return false; } Trigger other = (Trigger) o; if (other.getName() == null || getName() == null) { return false; } return getName().equals(other.getName()); }
/** * Trigger equality is based upon the equality of the Trigger name. * * @return true if the key of this Trigger equals that of the given Trigger. */ @Override public boolean equals(Object o) { if (!(o instanceof Trigger)) { return false; } Trigger other = (Trigger) o; if (other.getName() == null || getName() == null) { return false; } return getName().equals(other.getName()); }
/** * Trigger equality is based upon the equality of the Trigger name. * * @return true if the key of this Trigger equals that of the given Trigger. */ @Override public boolean equals(Object o) { if (!(o instanceof Trigger)) { return false; } Trigger other = (Trigger) o; if (other.getName() == null || getName() == null) { return false; } return getName().equals(other.getName()); }
/** * <p> * Compare the next fire time of this <code>Trigger</code> to that of another by comparing their keys, or in other words, sorts them according to * the natural (i.e. alphabetical) order of their keys. * </p> */ @Override public int compareTo(Trigger other) { if (other.getName() == null && getName() == null) { return 0; } if (other.getName() == null) { return -1; } if (getName() == null) { return 1; } return getName().compareTo(other.getName()); }
/** * <p> * Compare the next fire time of this <code>Trigger</code> to that of another by comparing their keys, or in other words, sorts them according to * the natural (i.e. alphabetical) order of their keys. * </p> */ @Override public int compareTo(Trigger other) { if (other.getName() == null && getName() == null) { return 0; } if (other.getName() == null) { return -1; } if (getName() == null) { return 1; } return getName().compareTo(other.getName()); }
@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }
@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }
@Override public String toString() { return "Trigger '" + getName() + "', triggerClass: " + getClass().getSimpleName() + ", jobName: " + getJobName() + ", jobDataMap: " + ((jobDataMap == null) ? "empty" : Arrays.toString(jobDataMap.entrySet().toArray())) + ", calendar: " + getCalendarName() + ", misfireInstruction: " + getMisfireInstruction() + ", priority: " + getPriority() + ", nextFireTime: " + getNextFireTime(); } }