Package com.helger.commons.datetime
Enum EDTType
- java.lang.Object
-
- java.lang.Enum<EDTType>
-
- com.helger.commons.datetime.EDTType
-
- All Implemented Interfaces:
Serializable,Comparable<EDTType>
public enum EDTType extends Enum<EDTType>
This enum defines the potential date and/or time data types available.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL_DATELOCAL_DATE_TIMELOCAL_TIMEOFFSET_DATEOFFSET_DATE_TIMEOFFSET_TIMEZONED_DATE_TIME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EDTTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EDTType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL_TIME
public static final EDTType LOCAL_TIME
-
OFFSET_TIME
public static final EDTType OFFSET_TIME
-
LOCAL_DATE
public static final EDTType LOCAL_DATE
-
OFFSET_DATE
public static final EDTType OFFSET_DATE
-
LOCAL_DATE_TIME
public static final EDTType LOCAL_DATE_TIME
-
OFFSET_DATE_TIME
public static final EDTType OFFSET_DATE_TIME
-
ZONED_DATE_TIME
public static final EDTType ZONED_DATE_TIME
-
-
Method Detail
-
values
public static EDTType[] 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 (EDTType c : EDTType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDTType 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
-
-