public enum DayReplacerType extends Enum<DayReplacerType> implements ReplacerType
| Enum Constant and Description |
|---|
MONTH_AFTER |
MONTH_BEFORE |
NOW |
TOMORROW |
WEEK_AFTER |
WEEK_BEFORE |
YEAR_AFTER |
YEAR_BEFORE |
YESTERDAY |
| Modifier and Type | Method and Description |
|---|---|
int |
getDays() |
String |
getName() |
String |
getPerfix() |
static DayReplacerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DayReplacerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayReplacerType NOW
public static final DayReplacerType YESTERDAY
public static final DayReplacerType TOMORROW
public static final DayReplacerType WEEK_AFTER
public static final DayReplacerType WEEK_BEFORE
public static final DayReplacerType MONTH_AFTER
public static final DayReplacerType MONTH_BEFORE
public static final DayReplacerType YEAR_BEFORE
public static final DayReplacerType YEAR_AFTER
public static DayReplacerType[] values()
for (DayReplacerType c : DayReplacerType.values()) System.out.println(c);
public static DayReplacerType 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 getDays()
public String getPerfix()
getPerfix in interface ReplacerTypepublic String getName()
getName in interface ReplacerTypeCopyright © 2016. All rights reserved.