java.util.Locale
A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user.
Some methods of Locale Class
Locale Constants: Some of the useful constants of the Locale class.
equals(): It returns true if this Locale is equal to another object.
Locale.forLanguageTag(): It returns a locale for the specified IETF BCP 47 language tag string.
Locale.getAvailableLocales(): It returns an array of all installed locales.
getCountry(): It returns the country/region code for this locale, which should either be the empty string, an uppercase ISO 3166 2-letter code, or a UN M.49 3-digit code.
Locale.getDefault(): It returns the current value of the default locale for this instance of the Java Virtual Machine.
Locale.getDefault(Category category): It returns the current value of the default locale for the specified Category of this instance of the Java Virtual Machine.
getDisplayCountry(): It returns a name for the locale's country that is appropriate for display to the user.
getDisplayCountry(Locale inLocale): It returns a name for the locale's country that is appropriate for display to the user.
getDisplayLanguage(): It returns a name for the locale's language that is appropriate for display to the user.
getDisplayLanguage(Locale inLocale): It returns a name for the locale's language that is appropriate for display to the user.
getDisplayName(): It returns a name for the locale that is appropriate for display to the user.
getDisplayName(Locale inLocale): It returns a name for the locale that is appropriate for display to the user.
getDisplayScript(): It returns a name for the locale's script that is appropriate for display to the user.
getDisplayScript(Locale inLocale): It returns a name for the locale's script that is appropriate for display to the user.
getDisplayVariant(): It returns a name for the locale's variant code that is appropriate for display to the user.
getDisplayVariant(Locale inLocale): It returns a name for the locale's variant code that is appropriate for display to the user.
Some more Methods of Locale class
No comments:
Post a Comment