This repository has been archived by the owner on May 26, 2021. It is now read-only.
CleverCloud/JavaLocaleUtil
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is just a useful thing for people working with java.util.Locale The main problem is about getting the nearest Locale in a Set<Locale> example : --------------------------------------------------- LocaleSet ls = new LocaleSet(); ls.add(Locale.UK); ls.add(Locale.FRANCE); ls.add(Locale.CHINA); List<Locale> ll = new ArrayList<Locale>(); ll.add(Locale.US); ls.getTheBestLocale(ll) return Locale.UK --------------------------------------------------- You can change the default choice for a LocaleSet with the ls.setSpecificLocaleDefault(mylocale) method The default is system Locale Look at the tests for more information ******************************************** This project is realease under the MIT licence
About
some good things for playing with java.util.Locale
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published