BrightSide Workbench Full Report + Source Code
org.turro.scheduler.task.constraints.WeekDay Enum Reference

Static Public Member Functions

static int map (int i)
 

Public Attributes

 MONDAY
 
 TUESDAY
 
 WEDNESDAY
 
 THURSDAY
 
 FRIDAY
 
 SATURDAY
 
 SUNDAY
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file task/constraints/WeekDay.java.

Member Function Documentation

◆ map()

static int org.turro.scheduler.task.constraints.WeekDay.map ( int  i)
static

Definition at line 37 of file task/constraints/WeekDay.java.

37  {
38  return switch(i) {
39  case 0 -> Calendar.MONDAY;
40  case 1 -> Calendar.TUESDAY;
41  case 2 -> Calendar.WEDNESDAY;
42  case 3 -> Calendar.THURSDAY;
43  case 4 -> Calendar.FRIDAY;
44  case 5 -> Calendar.SATURDAY;
45  case 6 -> Calendar.SUNDAY;
46  default -> -1;
47  };
48  }

Member Data Documentation

◆ FRIDAY

org.turro.scheduler.task.constraints.WeekDay.FRIDAY

Definition at line 33 of file task/constraints/WeekDay.java.

◆ MONDAY

org.turro.scheduler.task.constraints.WeekDay.MONDAY

Definition at line 29 of file task/constraints/WeekDay.java.

◆ SATURDAY

org.turro.scheduler.task.constraints.WeekDay.SATURDAY

Definition at line 34 of file task/constraints/WeekDay.java.

◆ SUNDAY

org.turro.scheduler.task.constraints.WeekDay.SUNDAY

Definition at line 35 of file task/constraints/WeekDay.java.

◆ THURSDAY

org.turro.scheduler.task.constraints.WeekDay.THURSDAY

Definition at line 32 of file task/constraints/WeekDay.java.

◆ TUESDAY

org.turro.scheduler.task.constraints.WeekDay.TUESDAY

Definition at line 30 of file task/constraints/WeekDay.java.

◆ WEDNESDAY

org.turro.scheduler.task.constraints.WeekDay.WEDNESDAY

Definition at line 31 of file task/constraints/WeekDay.java.


The documentation for this enum was generated from the following file: