Package com.iizix.prop.ui.datetime
Enum UIDateTimeDataType
- java.lang.Object
-
- java.lang.Enum<UIDateTimeDataType>
-
- com.iizix.prop.ui.datetime.UIDateTimeDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UIDateTimeDataType>
public enum UIDateTimeDataType extends java.lang.Enum<UIDateTimeDataType>
The data types that are supported and mappings to the UIDateTimeType, i.e.- Author:
- Christopher Mindus
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LocalDate
LocalDateTime
LocalTime
OffsetDateTime
OffsetTime
ZonedDateTime
ZoneId
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GDateTime.Type
getGDateTimeType()
Returns the corresponding type for GDateTime.Value.Type
getValueType()
Returns the Value type for Value.static UIDateTimeDataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UIDateTimeDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LocalTime
public static final UIDateTimeDataType LocalTime
-
OffsetTime
public static final UIDateTimeDataType OffsetTime
-
LocalDate
public static final UIDateTimeDataType LocalDate
-
LocalDateTime
public static final UIDateTimeDataType LocalDateTime
-
OffsetDateTime
public static final UIDateTimeDataType OffsetDateTime
-
ZonedDateTime
public static final UIDateTimeDataType ZonedDateTime
-
ZoneId
public static final UIDateTimeDataType ZoneId
-
-
Method Detail
-
values
public static UIDateTimeDataType[] 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 (UIDateTimeDataType c : UIDateTimeDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UIDateTimeDataType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getGDateTimeType
public GDateTime.Type getGDateTimeType()
Returns the corresponding type for GDateTime.
-
getValueType
public Value.Type getValueType()
Returns the Value type for Value.- Returns:
- The corresponding Value.type (Value.Type.LocalTime, etc) or for ZoneId Value.Type.String because there is no real match to it apart of String.
-
-