49 private final LocaleResources rootLocaleResources = 50 new LocaleResources(this, Locale.ROOT); 51 52 /** 53 * Returns the type of this LocaleProviderAdapter 54 */ 55 @Override 56 public LocaleProviderAdapter.Type getAdapterType() { 57 return Type.FALLBACK; 58 } 59 60 @Override 61 public LocaleResources getLocaleResources(Locale locale) { 62 return rootLocaleResources; 63 } 64 65 @Override 66 protected Set<String> createLanguageTagSet(String category) { 67 return rootTagSet; 68 } 69 } | 49 private final LocaleResources rootLocaleResources = 50 new LocaleResources(this, Locale.ROOT); 51 52 /** 53 * Returns the type of this LocaleProviderAdapter 54 */ 55 @Override 56 public LocaleProviderAdapter.Type getAdapterType() { 57 return Type.FALLBACK; 58 } 59 60 @Override 61 public LocaleResources getLocaleResources(Locale locale) { 62 return rootLocaleResources; 63 } 64 65 @Override 66 protected Set<String> createLanguageTagSet(String category) { 67 return rootTagSet; 68 } 69 70 @Override 71 public boolean isSupportedProviderLocale(Locale locale, Set<String>langtags) { 72 return Locale.ROOT.equals(locale); 73 } 74 } |