protected static LocaleData lookupLocaleData ( String code ) { LocaleData localeData = locales . get ( code ) ; if ( localeData == null ) { String [ ] data = decodeLocaleCode ( code ) ; localeData = new LocaleData ( new Locale ( data [ 0 ] , data [ 1 ] , data [ 2 ] ) ) ; locales . put ( code , localeData ) ; } return localeData ; }
Lookups for locale data and creates new if it doesn t exist .