public class OSXCollator extends Collator
If we wanted to match the OS X collation rules exactly, we would have to implement the rules for all languages supported by Mac OS X and Java. To reduce the amount of work needed for implementing these rules, the OSXCollator changes the collation rules returned by java.text.Collator.getInstance() to do the following:
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY| Constructor and Description |
|---|
OSXCollator()
Creates a new instance.
|
OSXCollator(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String source,
String target) |
boolean |
equals(Object o) |
CollationKey |
getCollationKey(String source) |
int |
hashCode() |
clone, compare, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrengthpublic OSXCollator()
public OSXCollator(Locale locale)
public CollationKey getCollationKey(String source)
getCollationKey in class Collatorpublic boolean equals(Object o)
equals in interface Comparator<Object>equals in class CollatorCopyright © 2014. All Rights Reserved.