testCurrentLocale

From Documentation
Revision as of 07:49, 16 November 2010 by Tomyeh (talk | contribs) (Created page with '{{ZUMLReferencePageHeader}} <source lang="java"> boolean testCurrent(String lang, String country); </source> :i.e., <javadoc method="testCurrent(java.lang.String, java.lang.Str…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



boolean testCurrent(String lang, String country);
i.e., Locales.testCurrent(String, String)

Returns whether the current locale (getCurrentLocale()) belongs to the specified language and/or country.

Parameters:

  • lang - the language code, e.g., en and zh. Ignored if null.
  • country - the country code, e.g., US. Ignored if null. If empty, it means no country code at all.

Version History

Last Update : 2010/11/16

Version Date Content
     



Last Update : 2010/11/16

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.