public static enum Date.Format extends Enum<Date.Format>
Enum Constant and Description |
---|
SIMPLE
YYYYMMDD . |
STANDARD
YYYY-MM-DD . |
Modifier and Type | Method and Description |
---|---|
abstract int |
parse(String dateString)
Parses the target string and returns the corresponding date as the elapsed days from
0001/01/01 (YYYY/MM/DD) . |
static Date.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Date.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Date.Format SIMPLE
YYYYMMDD
.public static final Date.Format STANDARD
YYYY-MM-DD
.public static Date.Format[] values()
for (Date.Format c : Date.Format.values()) System.out.println(c);
public static Date.Format 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 abstract int parse(String dateString)
0001/01/01 (YYYY/MM/DD)
.dateString
- the target stringIllegalArgumentException
- if the target string is malformedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.