code: public ULocale getLocale(int index) {
          List<ULocale> lcls = locales;
          if (lcls == null) {
              lcls = guessLocales();
          }
          if (index >= 0 && index < lcls.size()) {
              return lcls.get(index);
          }
          return null;
      }
docs: Convenience function for getting the locales in priority order
  @param index The index (0..n) of the desired item.
  @return desired item. null if index is out of range
  @hide draft / provisional / internal are hidden on Android