public enum DateShowSpecial extends Enum<DateShowSpecial> implements INumberEnum<Byte>
Enum Constant and Description |
---|
CURYR
Display year when not the current year
|
NONE
No special handling
|
TODAY
Use 'Today', 'Yesterday', 'Tomorrow', when possible
|
TWO_CURRENT_FOUR_OTHER
Output 2 digit year for this century; use 4 digit year for other century
|
Y4
Always display year on OUTPUT as 4 digit year
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Byte |
getValue() |
static DateShowSpecial |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateShowSpecial[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateShowSpecial NONE
public static final DateShowSpecial TODAY
public static final DateShowSpecial Y4
public static final DateShowSpecial TWO_CURRENT_FOUR_OTHER
public static final DateShowSpecial CURYR
public static DateShowSpecial[] values()
for (DateShowSpecial c : DateShowSpecial.values()) System.out.println(c);
public static DateShowSpecial 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<Byte>
long
public Byte getValue()
getValue
in interface INumberEnum<Byte>
Copyright © 2019–2021 HCL. All rights reserved.