Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

CleverCloud/JavaLocaleUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

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

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages