public enum Weekday extends Enum<Weekday> implements HasName
Enum Constant and Description |
---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
Modifier and Type | Method and Description |
---|---|
static Weekday |
getByCalendarConstant(int calendarConstant) |
int |
getCalendarConstant() |
String |
getName() |
Weekday |
next() |
Weekday |
previous() |
static Weekday |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weekday[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Weekday MONDAY
public static final Weekday TUESDAY
public static final Weekday WEDNESDAY
public static final Weekday THURSDAY
public static final Weekday FRIDAY
public static final Weekday SATURDAY
public static final Weekday SUNDAY
public static Weekday[] values()
for (Weekday c : Weekday.values()) System.out.println(c);
public static Weekday 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 getCalendarConstant()
public static Weekday getByCalendarConstant(int calendarConstant)
public Weekday next()
public Weekday previous()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.