Package libcore.icu
Class LocaleData
java.lang.Object
libcore.icu.LocaleData
public final class LocaleData extends Object
Passes locale-specific from ICU native code to Java.
Note that you share these; you must not alter any of the fields, nor their array elements in the case of arrays. If you ever expose any of these things to user code, you must give them a clone rather than the original.
-
Field Summary
-
Method Summary
Modifier and Type Method Description static LocaleDataget(Locale locale)Returns a shared LocaleData for the given locale.StringgetDateFormat(int style)StringgetTimeFormat(int style)StringtoString()Returns a string containing a concise, human-readable description of this object.
-
Field Details
-
firstDayOfWeek
-
minimalDaysInFirstWeek
-
amPm
-
eras
-
longMonthNames
-
shortMonthNames
-
tinyMonthNames
-
longStandAloneMonthNames
-
shortStandAloneMonthNames
-
tinyStandAloneMonthNames
-
longWeekdayNames
-
shortWeekdayNames
-
tinyWeekdayNames
-
longStandAloneWeekdayNames
-
shortStandAloneWeekdayNames
-
tinyStandAloneWeekdayNames
-
yesterday
-
today
-
tomorrow
-
fullTimeFormat
-
longTimeFormat
-
mediumTimeFormat
-
shortTimeFormat
-
fullDateFormat
-
longDateFormat
-
mediumDateFormat
-
shortDateFormat
-
shortDateFormat4
-
timeFormat12
-
timeFormat24
-
zeroDigit
public char zeroDigit -
decimalSeparator
public char decimalSeparator -
groupingSeparator
public char groupingSeparator -
patternSeparator
public char patternSeparator -
percent
public char percent -
perMill
public char perMill -
monetarySeparator
public char monetarySeparator -
minusSign
public char minusSign -
exponentSeparator
-
infinity
-
NaN
-
currencySymbol
-
internationalCurrencySymbol
-
numberPattern
-
integerPattern
-
currencyPattern
-
percentPattern
-
-
Method Details
-
get
Returns a shared LocaleData for the given locale. -
toString
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod. -
getDateFormat
-
getTimeFormat
-