java.lang.Object | +--java.text.DateFormatSymbolsAll Implemented Interfaces:
DateFormatSymbols(java.util.Locale locale) This method initializes a new instance of |
DateFormatSymbols() This method loads the format symbol information for the default locale. |
java.lang.Object | clone() Returns a new copy of this object. |
boolean | equals(java.lang.Object obj) This method tests a specified object for equality against this object. |
java.lang.String[] | getAmPmStrings() This method returns the list of strings used for displaying AM or PM. |
java.lang.String[] | getEras() This method returns the list of strings used for displaying eras (e.g., "BC" and "AD"). |
java.lang.String | getLocalPatternChars() This method returns the pattern character information for this object. |
java.lang.String[] | getMonths() This method returns the list of strings used for displaying month names (e.g., "January" and "February"). |
java.lang.String[] | getShortMonths() This method returns the list of strings used for displaying abbreviated month names (e.g., "Jan" and "Feb"). |
java.lang.String[] | getShortWeekdays() This method returns the list of strings used for displaying abbreviated weekday names (e.g., "Sun" and "Mon"). |
java.lang.String[] | getWeekdays() This method returns the list of strings used for displaying weekday names (e.g., "Sunday" and "Monday"). |
java.lang.String[][] | getZoneStrings() This method returns this list of localized timezone display strings. |
int | hashCode() This method returns a hash value for this object. |
void | setAmPmStrings(java.lang.String[] value) This method sets the list of strings used to display AM/PM values to the specified list. |
void | setEras(java.lang.String[] value) This method sets the list of strings used to display time eras to to the specified list. |
void | setLocalPatternChars(java.lang.String value) This method sets the list of characters used to specific date/time formatting strings. |
void | setMonths(java.lang.String[] value) This method sets the list of strings used to display month names. |
void | setShortMonths(java.lang.String[] value) This method sets the list of strings used to display abbreviated month names. |
void | setShortWeekdays(java.lang.String[] value) This method sets the list of strings used to display abbreviated weekday names. |
void | setWeekdays(java.lang.String[] value) This method sets the list of strings used to display weekday names. |
void | setZoneStrings(java.lang.String[][] value) This method sets the list of display strings for time zones. |
public DateFormatSymbols()
public DateFormatSymbols(java.util.Locale locale)
DateFormatSymbols
by loading the date format information for the specified locale.
locale
- The locale for which date formatting symbols should
be loaded.public Object clone()
public boolean equals(java.lang.Object obj)
null
.
DateFormatSymbols
.
obj
- The Object
to test for equality against.true
if the specified object is equal to this one,
false otherwise.public String[] getAmPmStrings()
String
array indexed by
Calendar.AM
and Calendar.PM
public String[] getEras()
String
array indexed by Calendar.BC
and Calendar.AD
.
public String getLocalPatternChars()
SimpleDateFormat
. The following are the character
positions in the string and which format character they correspond
to (the character in parentheses is the default value in the US English
locale):
public String[] getMonths()
Calendar.JANUARY
through
Calendar.UNDECEMBER
. Note that there are thirteen
elements because some calendars have thriteen months.
public String[] getShortMonths()
String
array indexed by Calendar.JANUARY
through Calendar.UNDECEMBER
. Note that there are thirteen
elements because some calendars have thirteen months.
public String[] getShortWeekdays()
String
array indexed by Calendar.SUNDAY
through Calendar.SATURDAY
. Note that the first element
of this array is ignored.
public String[] getWeekdays()
String
array indexed by Calendar.SUNDAY
through Calendar.SATURDAY
. Note that the first element
of this array is ignored.
public String[][] getZoneStrings()
String
array where each row in
the array contains five values:
public int hashCode()
public void setAmPmStrings(java.lang.String[] value)
String
array indexed by
Calendar.AM
and Calendar.PM
value
- The new list of AM/PM display strings.public void setEras(java.lang.String[] value)
String
array indexed by Calendar.BC
and Calendar.AD
.
value
- The new list of era disply strings.public void setLocalPatternChars(java.lang.String value)
SimpleDateFormat
. The following are the character
positions in the string and which format character they correspond
to (the character in parentheses is the default value in the US English
locale):
value
- The new format patter characterspublic void setMonths(java.lang.String[] value)
Calendar.JANUARY
through
Calendar.UNDECEMBER
. Note that there are thirteen
elements because some calendars have thriteen months.
value
- The list of month display strings.public void setShortMonths(java.lang.String[] value)
String
array indexed by Calendar.JANUARY
through Calendar.UNDECEMBER
. Note that there are thirteen
elements because some calendars have thirteen months.
value
- The new list of abbreviated month display strings.public void setShortWeekdays(java.lang.String[] value)
String
array indexed by Calendar.SUNDAY
through Calendar.SATURDAY
. Note that the first element
of this array is ignored.
value
- This list of abbreviated weekday display strings.public void setWeekdays(java.lang.String[] value)
String
array indexed by Calendar.SUNDAY
through Calendar.SATURDAY
. Note that the first element
of this array is ignored.
value
- This list of weekday display strings.public void setZoneStrings(java.lang.String[][] value)
String
array where each row in
the array contains five values:
value
-