private static void singleThreadGJLocale2() {
   List<Locale> locales = createLocales();
   List<Locale> shuffled = new ArrayList<Locale>(locales);
   Collections.shuffle(shuffled);
   long start = System.nanoTime();
   int count = 0;
   for (int j = 0; j < 1000000; j++) {
     GJLocaleSymbols symbols = GJLocaleSymbols.forLocale(Locale.US);
     count = count + symbols.getDayOfWeekMaxShortTextLength() + symbols.hashCode();
   }
   long end = System.nanoTime();
   System.out.println("Finished " + count + " " + (end - start) / 1000000);
 }
 public long set(long instant, String text, Locale locale) {
   return set(instant, GJLocaleSymbols.forLocale(locale).eraTextToValue(text));
 }
 public String getAsText(int fieldValue, Locale locale) {
   return GJLocaleSymbols.forLocale(locale).eraValueToText(fieldValue);
 }
 public int getMaximumTextLength(Locale locale) {
   return GJLocaleSymbols.forLocale(locale).getEraMaxTextLength();
 }
 /**
  * Convert the specified text and locale into a value.
  *
  * @param text the text to convert
  * @param locale the locale to convert using
  * @return the value extracted from the text
  * @throws IllegalArgumentException if the text is invalid
  */
 protected int convertText(String text, Locale locale) {
   return GJLocaleSymbols.forLocale(locale).dayOfWeekTextToValue(text);
 }
 /**
  * Get the abbreviated textual value of the specified time instant.
  *
  * @param fieldValue the field value to query
  * @param locale the locale to use
  * @return the day of the week, such as 'Mon'
  */
 public String getAsShortText(int fieldValue, Locale locale) {
   return GJLocaleSymbols.forLocale(locale).dayOfWeekValueToShortText(fieldValue);
 }
 /**
  * Get the maximum length of the abbreviated text returned by this field.
  *
  * @param locale the locale to use
  * @return the maximum abbreviated textual length
  */
 public int getMaximumShortTextLength(Locale locale) {
   return GJLocaleSymbols.forLocale(locale).getDayOfWeekMaxShortTextLength();
 }