long nextIncludedTime = timeInMillis + 1; //plus on millisecond while (!isTimeIncluded(nextIncludedTime)) { nextIncludedTime = cronExpression.getNextInvalidTimeAfter( new Date(nextIncludedTime)).getTime(); } else if ((getBaseCalendar() != null) && (!getBaseCalendar().isTimeIncluded(nextIncludedTime))){ nextIncludedTime = getBaseCalendar().getNextIncludedTime(nextIncludedTime); } else { nextIncludedTime++;
/** * Returns a string representing the properties of the * <CODE>CronCalendar</CODE> * * @return the properteis of the CronCalendar in a String format */ @Override public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("base calendar: ["); if (getBaseCalendar() != null) { buffer.append(getBaseCalendar().toString()); } else { buffer.append("null"); } buffer.append("], excluded cron expression: '"); buffer.append(cronExpression); buffer.append("'"); return buffer.toString(); }
/** * Determines whether the given time (in milliseconds) is 'included' by the * <CODE>BaseCalendar</CODE> * * @param timeInMillis the date/time to test * @return a boolean indicating whether the specified time is 'included' by * the <CODE>CronCalendar</CODE> */ @Override public boolean isTimeIncluded(long timeInMillis) { if ((getBaseCalendar() != null) && (getBaseCalendar().isTimeIncluded(timeInMillis) == false)) { return false; } return (!(cronExpression.isSatisfiedBy(new Date(timeInMillis)))); }
long nextIncludedTime = timeInMillis + 1; //plus on millisecond while (!isTimeIncluded(nextIncludedTime)) { nextIncludedTime = cronExpression.getNextInvalidTimeAfter( new Date(nextIncludedTime)).getTime(); } else if ((getBaseCalendar() != null) && (!getBaseCalendar().isTimeIncluded(nextIncludedTime))){ nextIncludedTime = getBaseCalendar().getNextIncludedTime(nextIncludedTime); } else { nextIncludedTime++;
/** * Returns a string representing the properties of the * <CODE>CronCalendar</CODE> * * @return the properteis of the CronCalendar in a String format */ @Override public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("base calendar: ["); if (getBaseCalendar() != null) { buffer.append(getBaseCalendar().toString()); } else { buffer.append("null"); } buffer.append("], excluded cron expression: '"); buffer.append(cronExpression); buffer.append("'"); return buffer.toString(); }
long nextIncludedTime = timeInMillis + 1; //plus on millisecond while (!isTimeIncluded(nextIncludedTime)) { nextIncludedTime = cronExpression.getNextInvalidTimeAfter( new Date(nextIncludedTime)).getTime(); } else if ((getBaseCalendar() != null) && (!getBaseCalendar().isTimeIncluded(nextIncludedTime))){ nextIncludedTime = getBaseCalendar().getNextIncludedTime(nextIncludedTime); } else { nextIncludedTime++;
/** * Determines whether the given time (in milliseconds) is 'included' by the * <CODE>BaseCalendar</CODE> * * @param timeInMillis the date/time to test * @return a boolean indicating whether the specified time is 'included' by * the <CODE>CronCalendar</CODE> */ public boolean isTimeIncluded(long timeInMillis) { if ((getBaseCalendar() != null) && (getBaseCalendar().isTimeIncluded(timeInMillis) == false)) { return false; } return (!(cronExpression.isSatisfiedBy(new Date(timeInMillis)))); }
long nextIncludedTime = timeInMillis + 1; //plus on millisecond while (!isTimeIncluded(nextIncludedTime)) { nextIncludedTime = cronExpression.getNextInvalidTimeAfter( new Date(nextIncludedTime)).getTime(); } else if ((getBaseCalendar() != null) && (!getBaseCalendar().isTimeIncluded(nextIncludedTime))){ nextIncludedTime = getBaseCalendar().getNextIncludedTime(nextIncludedTime); } else { nextIncludedTime++;
/** * Returns a string representing the properties of the * <CODE>CronCalendar</CODE> * * @return the properteis of the CronCalendar in a String format */ public String toString() { StringBuffer buffer = new StringBuffer(); if (name != null) { buffer.append(name).append(": "); } buffer.append("base calendar: ["); if (getBaseCalendar() != null) { buffer.append(getBaseCalendar().toString()); } else { buffer.append("null"); } buffer.append("], excluded cron expression: '"); buffer.append(cronExpression); buffer.append("'"); return buffer.toString(); }
/** * Determines whether the given time (in milliseconds) is 'included' by the * <CODE>BaseCalendar</CODE> * * @param timeInMillis the date/time to test * @return a boolean indicating whether the specified time is 'included' by * the <CODE>CronCalendar</CODE> */ @Override public boolean isTimeIncluded(long timeInMillis) { if ((getBaseCalendar() != null) && (getBaseCalendar().isTimeIncluded(timeInMillis) == false)) { return false; } return (!(cronExpression.isSatisfiedBy(new Date(timeInMillis)))); }
/** * Determines whether the given time (in milliseconds) is 'included' by the * <CODE>BaseCalendar</CODE> * * @param timeInMillis the date/time to test * @return a boolean indicating whether the specified time is 'included' by * the <CODE>CronCalendar</CODE> */ public boolean isTimeIncluded(long timeInMillis) { if ((getBaseCalendar() != null) && (getBaseCalendar().isTimeIncluded(timeInMillis) == false)) { return false; } return (!(cronExpression.isSatisfiedBy(new Date(timeInMillis)))); }
/** * Returns a string representing the properties of the * <CODE>CronCalendar</CODE> * * @return the properteis of the CronCalendar in a String format */ public String toString() { StringBuffer buffer = new StringBuffer(); if (name != null) { buffer.append(name).append(": "); } buffer.append("base calendar: ["); if (getBaseCalendar() != null) { buffer.append(getBaseCalendar().toString()); } else { buffer.append("null"); } buffer.append("], excluded cron expression: '"); buffer.append(cronExpression); buffer.append("'"); return buffer.toString(); }