Enum DayReplacerType
- java.lang.Object
-
- java.lang.Enum<DayReplacerType>
-
- com.github.database.rider.core.api.replacer.DayReplacerType
-
- All Implemented Interfaces:
ReplacerType,Serializable,Comparable<DayReplacerType>
public enum DayReplacerType extends Enum<DayReplacerType> implements ReplacerType
Created by pestano on 22/07/15.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MONTH_AFTERMONTH_BEFORENOWTOMORROWWEEK_AFTERWEEK_BEFOREYEAR_AFTERYEAR_BEFOREYESTERDAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDays()StringgetName()StringgetPrefix()static DayReplacerTypevalueOf(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.
-
-
-
Enum Constant Detail
-
NOW
public static final DayReplacerType NOW
-
YESTERDAY
public static final DayReplacerType YESTERDAY
-
TOMORROW
public static final DayReplacerType TOMORROW
-
WEEK_AFTER
public static final DayReplacerType WEEK_AFTER
-
WEEK_BEFORE
public static final DayReplacerType WEEK_BEFORE
-
MONTH_AFTER
public static final DayReplacerType MONTH_AFTER
-
MONTH_BEFORE
public static final DayReplacerType MONTH_BEFORE
-
YEAR_BEFORE
public static final DayReplacerType YEAR_BEFORE
-
YEAR_AFTER
public static final DayReplacerType YEAR_AFTER
-
-
Method Detail
-
values
public static DayReplacerType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DayReplacerType c : DayReplacerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DayReplacerType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDays
public int getDays()
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceReplacerType
-
getName
public String getName()
- Specified by:
getNamein interfaceReplacerType
-
-