net.sf.saxon.sort
Class CodepointCollator
java.lang.Object
net.sf.saxon.sort.CodepointCollator
- All Implemented Interfaces:
- Serializable, Comparator
public class CodepointCollator
- extends Object
- implements Comparator, Serializable
A collating sequence that uses Unicode codepoint ordering
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URI
public static String URI
CodepointCollator
public CodepointCollator()
getInstance
public static CodepointCollator getInstance()
compare
public int compare(Object a,
Object b)
- Compare two string objects.
- Specified by:
compare
in interface Comparator
- Returns:
- <0 if a0 if a>b
- Throws:
ClassCastException
- if the objects are of the wrong type for this Comparer