Package com.iizix.prop.ui.datetime
Enum Class UIDateTimeType
- All Implemented Interfaces:
Serializable
,Comparable<UIDateTimeType>
,Constable
The date-time type of the component, i.e. the types Time, Date, DateTime or ZoneId.
- Author:
- Christopher Mindus
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDate component, data type candidates: LocalDate.Date and time component, data type candidates: LocalDateTime, OffsetDateTime and ZonedDateTime.Time component, data type candidates: LocalTime, OffsetTime.Zone component, data type candidates: ZoneId. -
Method Summary
Modifier and TypeMethodDescriptionReturns the supported date-time datatypes for this type.Returns the supported GDateTime types for this type.boolean
Returns if a GDateType value is valid for this date-time type.boolean
isValid
(GDateTime.Type dateTimeType) Returns if a GDateType type is valid for this date-time type.boolean
isValid
(UIDateTimeDataType dataType) Returns if a datatype is valid for this date-time type.static UIDateTimeType
Returns the enum constant of this class with the specified name.static UIDateTimeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Time
Time component, data type candidates: LocalTime, OffsetTime. -
Date
Date component, data type candidates: LocalDate. -
DateTime
Date and time component, data type candidates: LocalDateTime, OffsetDateTime and ZonedDateTime. -
ZoneId
Zone component, data type candidates: ZoneId.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isValid
Returns if a datatype is valid for this date-time type. -
isValid
Returns if a GDateType value is valid for this date-time type. -
isValid
Returns if a GDateType type is valid for this date-time type. -
getSupportedDataTypes
Returns the supported date-time datatypes for this type. -
getSupportedGDateTimeTypes
Returns the supported GDateTime types for this type.
-