private List<LocaleProviderAdapter.Type> findProviders(Locale locale){
  List<LocaleProviderAdapter.Type> providersList=providersCache.get(locale);
  if (providersList == null) {
    for (    LocaleProviderAdapter.Type type : LocaleProviderAdapter.getAdapterPreference()) {
      LocaleServiceProvider lsp=providers.get(type);
      if (lsp != null) {
        if (lsp.isSupportedLocale(locale)) {
          if (providersList == null) {
            providersList=new ArrayList<>(2);
          }
          providersList.add(type);
        }
      }
    }
    if (providersList == null) {
      providersList=NULL_LIST;
    }
    List<LocaleProviderAdapter.Type> val=providersCache.putIfAbsent(locale,providersList);
    if (val != null) {
      providersList=val;
    }
  }
  return providersList;
}

private List < LocaleProviderAdapter . Type > findProviders ( Locale locale ) { List < LocaleProviderAdapter . Type > providersList = providersCache . get ( locale ) ; if ( providersList == null ) { for ( LocaleProviderAdapter . Type type : LocaleProviderAdapter . getAdapterPreference ( ) ) { LocaleServiceProvider lsp = providers . get ( type ) ; if ( lsp != null ) { if ( lsp . isSupportedLocale ( locale ) ) { if ( providersList == null ) { providersList = new ArrayList < > ( 2 ) ; } providersList . add ( type ) ; } } } if ( providersList == null ) { providersList = NULL_LIST ; } List < LocaleProviderAdapter . Type > val = providersCache . putIfAbsent ( locale , providersList ) ; if ( val != null ) { providersList = val ; } } return providersList ; }
returns the list of locale service provider instances that support the specified locale .
