@Test public void testNoLocale() { Collator collatorNoLocale = Collators.newCollator(Optional.<Locale>absent()); Collections.sort(toSortAlpha, collatorNoLocale); checkEnglishOrder(toSortAlpha); Collections.sort(toSortBeta, collatorNoLocale); checkEnglishOrder(toSortBeta); }
public static Collator newCollator(Optional<Locale> localeOptional) { if (localeOptional.isPresent()) { return Collator.getInstance(localeOptional.get()); } else { return Collator.getInstance(); } }
Collators { public static Collator newCollator(Optional<Locale> localeOptional) { if (localeOptional.isPresent()) { return Collator.getInstance(localeOptional.get()); } else { return Collator.getInstance(); } } }
Collators { public static Collator newCollator(Optional<Locale> localeOptional) { if (localeOptional.isPresent()) { return Collator.getInstance(localeOptional.get()); } else { return Collator.getInstance(); } }  }
Collators { public static Collator newCollator(Optional<Locale> localeOptional) { if (localeOptional.isPresent()) { return Collator.getInstance(localeOptional.get()); } else { return Collator.getInstance(); } }  static Collator newCollator(Optional<Locale> localeOptional); }
Collators { public static Collator newCollator(Optional<Locale> localeOptional) { if (localeOptional.isPresent()) { return Collator.getInstance(localeOptional.get()); } else { return Collator.getInstance(); } }  static Collator newCollator(Optional<Locale> localeOptional);  }