Package com.sencha.gxt.core.client.util
Enum DateWrapper.Unit
- java.lang.Object
-
- java.lang.Enum<DateWrapper.Unit>
-
- com.sencha.gxt.core.client.util.DateWrapper.Unit
-
- All Implemented Interfaces:
Serializable
,Comparable<DateWrapper.Unit>
- Enclosing class:
- DateWrapper
public static enum DateWrapper.Unit extends Enum<DateWrapper.Unit>
Represents the different unit values that theDateWrapper.add(Unit, int)
method takes
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateWrapper.Unit
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateWrapper.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final DateWrapper.Unit DAY
-
HOUR
public static final DateWrapper.Unit HOUR
-
MILLI
public static final DateWrapper.Unit MILLI
-
MINUTE
public static final DateWrapper.Unit MINUTE
-
MONTH
public static final DateWrapper.Unit MONTH
-
SECOND
public static final DateWrapper.Unit SECOND
-
YEAR
public static final DateWrapper.Unit YEAR
-
-
Method Detail
-
values
public static DateWrapper.Unit[] 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 (DateWrapper.Unit c : DateWrapper.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateWrapper.Unit 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
-
-