public static enum DateUtils.DayOfWeek extends Enum<DateUtils.DayOfWeek>
| Enum Constant and Description |
|---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
| Modifier and Type | Method and Description |
|---|---|
static DateUtils.DayOfWeek |
findByNumber(int number) |
DateUtils.DayOfWeek |
getNextDay() |
int |
getNumber() |
static List<DateUtils.DayOfWeek> |
getWeekDays() |
Boolean |
isWeekend() |
String |
toString() |
static DateUtils.DayOfWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateUtils.DayOfWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateUtils.DayOfWeek SUNDAY
public static final DateUtils.DayOfWeek MONDAY
public static final DateUtils.DayOfWeek TUESDAY
public static final DateUtils.DayOfWeek WEDNESDAY
public static final DateUtils.DayOfWeek THURSDAY
public static final DateUtils.DayOfWeek FRIDAY
public static final DateUtils.DayOfWeek SATURDAY
public static DateUtils.DayOfWeek[] values()
for (DateUtils.DayOfWeek c : DateUtils.DayOfWeek.values()) System.out.println(c);
public static DateUtils.DayOfWeek 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 Boolean isWeekend()
public static DateUtils.DayOfWeek findByNumber(int number)
public DateUtils.DayOfWeek getNextDay()
public static List<DateUtils.DayOfWeek> getWeekDays()
public String toString()
toString in class Enum<DateUtils.DayOfWeek>public int getNumber()
Copyright © 2014. All rights reserved.