public enum WeekendPolicy extends Enum<WeekendPolicy>
| Enum Constant and Description |
|---|
FRIDAY_SATURDAY |
SATURDAY_SUNDAY |
THURSDAY_FRIDAY |
| Modifier and Type | Method and Description |
|---|---|
static int |
daysFromWeekend(WeekendPolicy policy,
java.time.ZonedDateTime date) |
static int |
daysToWeekend(WeekendPolicy policy,
java.time.ZonedDateTime date) |
static WeekendPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekendPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekendPolicy THURSDAY_FRIDAY
public static final WeekendPolicy FRIDAY_SATURDAY
public static final WeekendPolicy SATURDAY_SUNDAY
public static WeekendPolicy[] values()
for (WeekendPolicy c : WeekendPolicy.values()) System.out.println(c);
public static WeekendPolicy 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 static int daysToWeekend(WeekendPolicy policy, java.time.ZonedDateTime date)
public static int daysFromWeekend(WeekendPolicy policy, java.time.ZonedDateTime date)
Copyright © 2020. All rights reserved.