public enum Weekdays extends Enum<Weekdays>
Enum Constant and Description |
---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
Modifier and Type | Method and Description |
---|---|
int |
getWeekday() |
int |
getWeekday(CronDefinition cronDefinition) |
int |
getWeekday(WeekDay weekDay) |
static Weekdays |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weekdays[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weekdays MONDAY
public static final Weekdays TUESDAY
public static final Weekdays WEDNESDAY
public static final Weekdays THURSDAY
public static final Weekdays FRIDAY
public static final Weekdays SATURDAY
public static final Weekdays SUNDAY
public static Weekdays[] values()
for (Weekdays c : Weekdays.values()) System.out.println(c);
public static Weekdays valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getWeekday()
public int getWeekday(WeekDay weekDay)
public int getWeekday(CronDefinition cronDefinition)
Copyright © 2020 JBoss by Red Hat. All rights reserved.