public enum WeekendDefinition extends Enum<WeekendDefinition>
Enum Constant and Description |
---|
FRIDAY_SATURDAY_SUNDAY |
FRIDAY_SATURDAY_SUNDAY_MONDAY |
SATURDAY_SUNDAY |
SATURDAY_SUNDAY_MONDAY |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
DayOfWeek |
getFirstDayOfWeekend() |
DayOfWeek |
getLastDayOfWeekend() |
int |
getWeekendLength() |
boolean |
isWeekend(DayOfWeek dayOfWeek) |
String |
toString() |
static WeekendDefinition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekendDefinition |
valueOfCode(String code) |
static WeekendDefinition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekendDefinition SATURDAY_SUNDAY
public static final WeekendDefinition FRIDAY_SATURDAY_SUNDAY
public static final WeekendDefinition FRIDAY_SATURDAY_SUNDAY_MONDAY
public static final WeekendDefinition SATURDAY_SUNDAY_MONDAY
public static WeekendDefinition[] values()
for (WeekendDefinition c : WeekendDefinition.values()) System.out.println(c);
public static WeekendDefinition 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 WeekendDefinition valueOfCode(String code)
public String getCode()
public DayOfWeek getFirstDayOfWeekend()
public DayOfWeek getLastDayOfWeekend()
public String toString()
toString
in class Enum<WeekendDefinition>
public boolean isWeekend(DayOfWeek dayOfWeek)
public int getWeekendLength()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.