Enum TimeUnitDTO
- java.lang.Object
-
- java.lang.Enum<TimeUnitDTO>
-
- org.silverpeas.mobile.shared.dto.almanach.TimeUnitDTO
-
- All Implemented Interfaces:
Serializable
,Comparable<TimeUnitDTO>
public enum TimeUnitDTO extends Enum<TimeUnitDTO> implements Serializable
- Author:
- svu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeUnitDTO
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeUnitDTO[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final TimeUnitDTO MILLISECOND
-
SECOND
public static final TimeUnitDTO SECOND
-
MINUTE
public static final TimeUnitDTO MINUTE
-
HOUR
public static final TimeUnitDTO HOUR
-
DAY
public static final TimeUnitDTO DAY
-
WEEK
public static final TimeUnitDTO WEEK
-
MONTH
public static final TimeUnitDTO MONTH
-
YEAR
public static final TimeUnitDTO YEAR
-
-
Method Detail
-
values
public static TimeUnitDTO[] 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 (TimeUnitDTO c : TimeUnitDTO.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeUnitDTO 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
-
-