@ThreadSafe public final class CollatorHelper extends Object
Collator objects.| Modifier and Type | Method and Description |
|---|---|
static EChange |
clearCache()
Clear all cached collators.
|
static Collator |
getCollatorSpaceBeforeDot(Locale aLocale)
Create a collator that is based on the standard collator but sorts spaces
before dots, because spaces are more important word separators than dots.
|
@Nonnull @ReturnsMutableCopy public static Collator getCollatorSpaceBeforeDot(@Nullable Locale aLocale)
aLocale - The locale for which the collator is to be retrieved. May be
null to indicate the usage of the default locale.RuleBasedCollator and never null.Copyright © 2014–2016 Philip Helger. All rights reserved.