public enum DateFormat extends Enum<DateFormat>
Enum Constant and Description |
---|
DATE_FORMAT_EAST_ASIA
East Asia date format.
|
DATE_FORMAT_STANDARD
European date format.
|
DATE_FORMAT_UNITED_STATES
North America date format.
|
Modifier and Type | Field and Description |
---|---|
private String |
dateFormat
Date format to use.
|
private String |
example
Example of the current date to display.
|
Modifier and Type | Method and Description |
---|---|
String |
getDateFormat()
Get the date format.
|
String |
toString()
Return a String to display this date format.
|
static DateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFormat DATE_FORMAT_STANDARD
public static final DateFormat DATE_FORMAT_UNITED_STATES
public static final DateFormat DATE_FORMAT_EAST_ASIA
private final String dateFormat
private final String example
public static DateFormat[] values()
for (DateFormat c : DateFormat.values()) System.out.println(c);
public static DateFormat 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 String getDateFormat()
public String toString()
toString
in class Enum<DateFormat>
Copyright © 2013–2015. All rights reserved.