class AnnotationExtractor {

  static public <E extends Enum<?>> String[] getLocaleNames(Class<E> enumClass) {
    Locale[] localeDataArray = getLocaleData(enumClass);

    if (localeDataArray == null) {
      return null;
    }

    String[] names = new String[localeDataArray.length];
    for (int i = 0; i < localeDataArray.length; i++) {
      names[i] = localeDataArray[i].value();
    }
    return names;
  }

}