public interface StringCollator extends Serializable
Note: an implementation of this interface that wraps a Java RuleBasedCollator
is
available: see RuleBasedSubstringMatcher
.
Modifier and Type | Method and Description |
---|---|
boolean |
comparesEqual(String s1,
String s2)
Compare two strings for equality.
|
int |
compareStrings(String o1,
String o2)
Compare two strings
|
Object |
getCollationKey(String s)
Get a collation key for a String.
|
int compareStrings(String o1, String o2)
o1
- the first stringo2
- the second stringboolean comparesEqual(String s1, String s2)
s1
- the first strings2
- the second stringObject getCollationKey(String s)
s
- the string whose collation key is requiredCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.