Package org.vaadin.miki.shared.dates
Enum DatePattern.Order
- java.lang.Object
-
- java.lang.Enum<DatePattern.Order>
-
- org.vaadin.miki.shared.dates.DatePattern.Order
-
- All Implemented Interfaces:
Serializable,Comparable<DatePattern.Order>
- Enclosing class:
- DatePattern
public static enum DatePattern.Order extends Enum<DatePattern.Order>
Defines available display order of dates.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY_MONTH_YEARMONTH_DAY_YEARYEAR_MONTH_DAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatePattern.OrdervalueOf(String name)Returns the enum constant of this type with the specified name.static DatePattern.Order[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY_MONTH_YEAR
public static final DatePattern.Order DAY_MONTH_YEAR
-
MONTH_DAY_YEAR
public static final DatePattern.Order MONTH_DAY_YEAR
-
YEAR_MONTH_DAY
public static final DatePattern.Order YEAR_MONTH_DAY
-
-
Method Detail
-
values
public static DatePattern.Order[] 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 (DatePattern.Order c : DatePattern.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatePattern.Order 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
-
-