public enum DateTimeFlag extends Enum<DateTimeFlag> implements INumberEnum<Integer>
Enum Constant and Description |
---|
ALPHAMONTH
Require months be INPUT as letters, not digits (e.g.
|
FOURDIGITYEAR
Require 4 digit year on INPUT (not output)
|
SHOWABBREV
Displays the date as an abbriviated date
|
SHOWDATE
Display date element on output
|
SHOWTIME
Display time element on output
|
STYLE_DMY
Date element order: Day-of-week, Day, Month, Year
|
STYLE_MDY
Date element order: Day-of-week, Month, Day, Year
|
STYLE_MSK
This is where we store the style value in DTFlags
|
STYLE_YMD
Date element order: Year, Month, Day, Day-of-week
|
TWENTYFOURHOUR
Display time on output using 24 hour clock format
|
VALID
Validity bit: If 1, use new DTFMT; if 0, use old TFMT
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Integer |
getValue() |
static DateTimeFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeFlag VALID
public static final DateTimeFlag FOURDIGITYEAR
public static final DateTimeFlag ALPHAMONTH
public static final DateTimeFlag SHOWTIME
public static final DateTimeFlag SHOWDATE
public static final DateTimeFlag TWENTYFOURHOUR
public static final DateTimeFlag SHOWABBREV
public static final DateTimeFlag STYLE_YMD
public static final DateTimeFlag STYLE_MDY
public static final DateTimeFlag STYLE_DMY
public static final DateTimeFlag STYLE_MSK
public static DateTimeFlag[] values()
for (DateTimeFlag c : DateTimeFlag.values()) System.out.println(c);
public static DateTimeFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getLongValue()
getLongValue
in interface INumberEnum<Integer>
long
public Integer getValue()
getValue
in interface INumberEnum<Integer>
Copyright © 2019–2021 HCL. All rights reserved.