gpt4 book ai didi

org.quartz.impl.calendar.WeeklyCalendar.isDayExcluded()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 14:23:05 26 4
gpt4 key购买 nike

本文整理了Java中org.quartz.impl.calendar.WeeklyCalendar.isDayExcluded()方法的一些代码示例,展示了WeeklyCalendar.isDayExcluded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WeeklyCalendar.isDayExcluded()方法的具体详情如下:
包路径:org.quartz.impl.calendar.WeeklyCalendar
类名称:WeeklyCalendar
方法名:isDayExcluded

WeeklyCalendar.isDayExcluded介绍

[英]Return true, if wday (see Calendar.get()) is defined to be exluded. E. g. saturday and sunday.
[中]如果wday(参见Calendar.get())被定义为排除,则返回true。例如周六和周日。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Check if all week days are excluded. That is no day is included.
 * </p>
 *
 * @return boolean
 */
public boolean areAllDaysExcluded() {
  return
    isDayExcluded(java.util.Calendar.SUNDAY) &&
    isDayExcluded(java.util.Calendar.MONDAY) &&
    isDayExcluded(java.util.Calendar.TUESDAY) &&
    isDayExcluded(java.util.Calendar.WEDNESDAY) &&
    isDayExcluded(java.util.Calendar.THURSDAY) &&
    isDayExcluded(java.util.Calendar.FRIDAY) &&
    isDayExcluded(java.util.Calendar.SATURDAY);
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Check if all week days are excluded. That is no day is included.
 * </p>
 *
 * @return boolean
 */
public boolean areAllDaysExcluded() {
  return
    isDayExcluded(java.util.Calendar.SUNDAY) &&
    isDayExcluded(java.util.Calendar.MONDAY) &&
    isDayExcluded(java.util.Calendar.TUESDAY) &&
    isDayExcluded(java.util.Calendar.WEDNESDAY) &&
    isDayExcluded(java.util.Calendar.THURSDAY) &&
    isDayExcluded(java.util.Calendar.FRIDAY) &&
    isDayExcluded(java.util.Calendar.SATURDAY);
}

代码示例来源:origin: quartz-scheduler/quartz

int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
if (!isDayExcluded(wday)) {
  return timeStamp; // return the original value
while (isDayExcluded(wday) == true) {
  cl.add(java.util.Calendar.DATE, 1);
  wday = cl.get(java.util.Calendar.DAY_OF_WEEK);

代码示例来源:origin: quartz-scheduler/quartz

int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
if (!isDayExcluded(wday)) {
  return timeStamp; // return the original value
while (isDayExcluded(wday) == true) {
  cl.add(java.util.Calendar.DATE, 1);
  wday = cl.get(java.util.Calendar.DAY_OF_WEEK);

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Determine whether the given time (in milliseconds) is 'included' by the
 * Calendar.
 * </p>
 *
 * <p>
 * Note that this Calendar is only has full-day precision.
 * </p>
 */
@Override
public boolean isTimeIncluded(long timeStamp) {
  if (excludeAll == true) {
    return false;
  }
  // Test the base calendar first. Only if the base calendar not already
  // excludes the time/date, continue evaluating this calendar instance.
  if (super.isTimeIncluded(timeStamp) == false) { return false; }
  java.util.Calendar cl = createJavaCalendar(timeStamp);
  int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
  return !(isDayExcluded(wday));
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * <p>
 * Determine whether the given time (in milliseconds) is 'included' by the
 * Calendar.
 * </p>
 *
 * <p>
 * Note that this Calendar is only has full-day precision.
 * </p>
 */
@Override
public boolean isTimeIncluded(long timeStamp) {
  if (excludeAll == true) {
    return false;
  }
  // Test the base calendar first. Only if the base calendar not already
  // excludes the time/date, continue evaluating this calendar instance.
  if (super.isTimeIncluded(timeStamp) == false) { return false; }
  java.util.Calendar cl = createJavaCalendar(timeStamp);
  int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
  return !(isDayExcluded(wday));
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Check if all week days are excluded. That is no day is included.
 * </p>
 * 
 * @return boolean
 */
public boolean areAllDaysExcluded() {
  return 
    isDayExcluded(java.util.Calendar.SUNDAY) &&
    isDayExcluded(java.util.Calendar.MONDAY) &&
    isDayExcluded(java.util.Calendar.TUESDAY) &&
    isDayExcluded(java.util.Calendar.WEDNESDAY) &&
    isDayExcluded(java.util.Calendar.THURSDAY) &&
    isDayExcluded(java.util.Calendar.FRIDAY) &&
    isDayExcluded(java.util.Calendar.SATURDAY);
}

代码示例来源:origin: quartz/quartz-all

/**
 * <p>
 * Check if all week days are excluded. That is no day is included.
 * </p>
 * 
 * @return boolean
 */
public boolean areAllDaysExcluded() {
  return 
    isDayExcluded(java.util.Calendar.SUNDAY) &&
    isDayExcluded(java.util.Calendar.MONDAY) &&
    isDayExcluded(java.util.Calendar.TUESDAY) &&
    isDayExcluded(java.util.Calendar.WEDNESDAY) &&
    isDayExcluded(java.util.Calendar.THURSDAY) &&
    isDayExcluded(java.util.Calendar.FRIDAY) &&
    isDayExcluded(java.util.Calendar.SATURDAY);
}

代码示例来源:origin: quartz/quartz-all

int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
if (!isDayExcluded(wday)) { 
  return timeStamp; // return the original value
while (isDayExcluded(wday) == true) {
  cl.add(java.util.Calendar.DATE, 1);
  wday = cl.get(java.util.Calendar.DAY_OF_WEEK);

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
if (!isDayExcluded(wday)) { 
  return timeStamp; // return the original value
while (isDayExcluded(wday) == true) {
  cl.add(java.util.Calendar.DATE, 1);
  wday = cl.get(java.util.Calendar.DAY_OF_WEEK);

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * <p>
 * Determine whether the given time (in milliseconds) is 'included' by the
 * Calendar.
 * </p>
 * 
 * <p>
 * Note that this Calendar is only has full-day precision.
 * </p>
 */
public boolean isTimeIncluded(long timeStamp) {
  if (excludeAll == true) {
    return false;
  }
  // Test the base calendar first. Only if the base calendar not already
  // excludes the time/date, continue evaluating this calendar instance.
  if (super.isTimeIncluded(timeStamp) == false) { return false; }
  java.util.Calendar cl = createJavaCalendar(timeStamp);
  int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
  return !(isDayExcluded(wday));
}

代码示例来源:origin: quartz/quartz-all

/**
 * <p>
 * Determine whether the given time (in milliseconds) is 'included' by the
 * Calendar.
 * </p>
 * 
 * <p>
 * Note that this Calendar is only has full-day precision.
 * </p>
 */
public boolean isTimeIncluded(long timeStamp) {
  if (excludeAll == true) {
    return false;
  }
  // Test the base calendar first. Only if the base calendar not already
  // excludes the time/date, continue evaluating this calendar instance.
  if (super.isTimeIncluded(timeStamp) == false) { return false; }
  java.util.Calendar cl = createJavaCalendar(timeStamp);
  int wday = cl.get(java.util.Calendar.DAY_OF_WEEK);
  return !(isDayExcluded(wday));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com