|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.DateFormatSymbols
public class DateFormatSymbols
DateFormatSymbols holds the Strings used in the formating and parsing of dates and times.
| Field Summary | |
|---|---|
(package private) String[] |
ampms
|
(package private) String[] |
eras
|
(package private) Locale |
locale
Locale, necessary to lazily load time zone strings. |
(package private) String[] |
months
|
(package private) String[] |
shortMonths
|
(package private) String[] |
shortWeekdays
|
(package private) String[] |
weekdays
|
(package private) String[][] |
zoneStrings
|
| Constructor Summary | |
|---|---|
DateFormatSymbols()
Constructs a new DateFormatSymbols containing the symbols for the default Locale. |
|
DateFormatSymbols(Locale locale)
Constructs a new DateFormatSymbols containing the symbols for the specified Locale. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver. |
boolean |
equals(Object object)
Compares the specified object to this DateFormatSymbols and answer if they are equal. |
String[] |
getAmPmStrings()
Returns the array of Strings which represent AM and PM. |
String[] |
getEras()
Returns the array of Strings which represent BC and AD. |
String |
getLocalPatternChars()
Returns the pattern characters used by SimpleDateFormat to specify date and time fields. |
String[] |
getMonths()
Returns the array of Strings containing the full names of the months. |
String[] |
getShortMonths()
Returns the array of Strings containing the abbreviated names of the months. |
String[] |
getShortWeekdays()
Returns the array of Strings containing the abbreviated names of the days of the week. |
String[] |
getWeekdays()
Returns the array of Strings containing the full names of the days of the week. |
String[][] |
getZoneStrings()
Returns the two-dimensional array of Strings containing the names of the timezones. |
int |
hashCode()
Returns an integer hash code for the receiver. |
(package private) String[][] |
internalZoneStrings()
Gets zone strings, initializing them if necessary. |
void |
setAmPmStrings(String[] data)
Sets the array of Strings which represent AM and PM. |
void |
setEras(String[] data)
Sets the array of Strings which represent BC and AD. |
void |
setLocalPatternChars(String data)
Sets the pattern characters used by SimpleDateFormat to specify date and time fields. |
void |
setMonths(String[] data)
Sets the array of Strings containing the full names of the months. |
void |
setShortMonths(String[] data)
Sets the array of Strings containing the abbreviated names of the months. |
void |
setShortWeekdays(String[] data)
Sets the array of Strings containing the abbreviated names of the days of the week. |
void |
setWeekdays(String[] data)
Sets the array of Strings containing the full names of the days of the week. |
void |
setZoneStrings(String[][] data)
Sets the two-dimensional array of Strings containing the names of the timezones. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
String[] ampms
String[] eras
String[] months
String[] shortMonths
String[] shortWeekdays
String[] weekdays
String[][] zoneStrings
final transient Locale locale
| Constructor Detail |
|---|
public DateFormatSymbols()
public DateFormatSymbols(Locale locale)
locale - the Locale| Method Detail |
|---|
String[][] internalZoneStrings()
public Object clone()
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class Objectpublic boolean equals(Object object)
equals in class Objectobject - the object to compare with this object
hashCode()public String[] getAmPmStrings()
public String[] getEras()
public String getLocalPatternChars()
public String[] getMonths()
public String[] getShortMonths()
public String[] getShortWeekdays()
public String[] getWeekdays()
public String[][] getZoneStrings()
public int hashCode()
hashCode in class Objectequals(java.lang.Object)public void setAmPmStrings(String[] data)
data - the array of Stringspublic void setEras(String[] data)
data - the array of Stringspublic void setLocalPatternChars(String data)
data - the String containing the pattern characters
NullPointerException - when the data is nullpublic void setMonths(String[] data)
data - the array of Stringspublic void setShortMonths(String[] data)
data - the array of Stringspublic void setShortWeekdays(String[] data)
data - the array of Stringspublic void setWeekdays(String[] data)
data - the array of Stringspublic void setZoneStrings(String[][] data)
data - the two-dimensional array of Strings
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||