public enum YearFormat extends Enum<YearFormat> implements INumberEnum<Byte>
Enum Constant and Description |
---|
GE
Single letter (first letter ) of epoch name and 1 or 2 digit (no leading zeros) year
|
GEE
Single letter (first letter ) of epoch name and 2 digit (with leading zeros, if necessary) year
|
GGE |
GGEE
Abbreviated spelling and 2 digit (with leading zeros, if necessary) year
|
GGGE |
GGGEE
fully spelled out epoch name and 2 digit (with leading zeros, if necessary) year
|
YY
2 digit year
|
YYYY
4 digit year
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue() |
Byte |
getValue() |
static YearFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YearFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YearFormat YY
public static final YearFormat YYYY
public static final YearFormat GE
public static final YearFormat GEE
public static final YearFormat GGE
public static final YearFormat GGEE
public static final YearFormat GGGE
public static final YearFormat GGGEE
public static YearFormat[] values()
for (YearFormat c : YearFormat.values()) System.out.println(c);
public static YearFormat 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.