gpt4 book ai didi

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

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

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

WeeklyCalendar.setDayExcluded介绍

[英]Redefine a certain day of the week to be excluded (true) or included (false). Use java.util.Calendar's constants like MONDAY to determine the wday.
[中]重新定义一周中要排除(true)或包含(false)的某一天。使用java。util。日历的常数(如星期一)决定了wday。

代码示例

代码示例来源:origin: secbr/drools

@Override
  public boolean isTimeIncluded(long timestamp) {
    WeeklyCalendar weeklyCalendar = new WeeklyCalendar();
    weeklyCalendar.setDaysExcluded(new boolean[]{false,false,false,false,false,false,false});
    weeklyCalendar.setDayExcluded(java.util.Calendar.THURSDAY,true);
    return weeklyCalendar.isTimeIncluded(timestamp);
  }
};

代码示例来源:origin: snakerflow/snakerflow

if(NumberUtils.isNumber(week)) {
  int w = Integer.parseInt(week);
  weekdayCal.setDayExcluded(w + 1, true);
} else {
  log.warn("{} 不是合法的星期数值,请检查星期的配置在1~7内");

代码示例来源:origin: com.bstek.uflo/uflo-core

}else if(type.equals(CalendarType.weekly)){
  WeeklyCalendar calendar=new WeeklyCalendar();
  calendar.setDayExcluded(java.util.Calendar.SUNDAY, false);
  calendar.setDayExcluded(java.util.Calendar.SATURDAY, false);
  if(dates!=null){
    for(CalendarDate d:dates){
      calendar.setDayExcluded(d.getDayOfWeek(),true);

代码示例来源:origin: youseries/uflo

}else if(type.equals(CalendarType.weekly)){
  WeeklyCalendar calendar=new WeeklyCalendar();
  calendar.setDayExcluded(java.util.Calendar.SUNDAY, false);
  calendar.setDayExcluded(java.util.Calendar.SATURDAY, false);
  if(dates!=null){
    for(CalendarDate d:dates){
      calendar.setDayExcluded(d.getDayOfWeek(),true);

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