@Test public void testFrenchLocale() { Collator collatorFrenchLocale = Collators.newCollator(Optional.of(Locale.FRENCH)); Collections.sort(toSortAlpha, collatorFrenchLocale); checkFrenchOrder(toSortAlpha); Collections.sort(toSortBeta, collatorFrenchLocale); checkFrenchOrder(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);  }