public static final class Collation.Unicode extends Collation
Collation.ASCII, Collation.Unicode
Modifier and Type | Method and Description |
---|---|
Collation.Unicode |
setIgnoreAccents(boolean ignAccents)
Specifies whether the collation ignore the accents or diacritics when
comparing the strings or not.
|
Collation.Unicode |
setIgnoreCase(boolean ignCase)
Specifies whether the collation is case-insensitive or not.
|
Collation.Unicode |
setLocale(String locale)
Specifies the locale to allow the collation to compare strings appropriately based on
the locale.
|
@NonNull public Collation.Unicode setLocale(@Nullable String locale)
locale
- The locale code@NonNull public Collation.Unicode setIgnoreAccents(boolean ignAccents)
ignAccents
- True for accent-insensitive; false for accent-sensitive.@NonNull public Collation.Unicode setIgnoreCase(boolean ignCase)
ignCase
- True for case-insensitive; false for case-sensitive.