Package com.iizix.prop
Enum GDateTime.Type
- java.lang.Object
- java.lang.Enum<GDateTime.Type>
- com.iizix.prop.GDateTime.Type
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GDateTime.Type>
- Enclosing class:
- GDateTime
public static enum GDateTime.Type extends java.lang.Enum<GDateTime.Type>
The type.
Enum Constant Summary
Enum Constants Enum Constant Description LocalDate
LocalDateTime
LocalTime
OffsetDateTime
OffsetTime
ZonedDateTime
ZoneId
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GDateTime.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GDateTime.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
LocalTime
public static final GDateTime.Type LocalTime
OffsetTime
public static final GDateTime.Type OffsetTime
LocalDate
public static final GDateTime.Type LocalDate
LocalDateTime
public static final GDateTime.Type LocalDateTime
OffsetDateTime
public static final GDateTime.Type OffsetDateTime
ZonedDateTime
public static final GDateTime.Type ZonedDateTime
ZoneId
public static final GDateTime.Type ZoneId
Method Detail
values
public static GDateTime.Type[] 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 (GDateTime.Type c : GDateTime.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static GDateTime.Type 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