public class AlphanumericCollator extends Object implements StringCollator, Serializable
Note: this StringCollator produces an ordering that is not compatible with equals().
| Constructor and Description |
|---|
AlphanumericCollator(StringCollator base)
Create an alphanumeric collation
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
comparesEqual(String s1,
String s2)
Compare two strings for equality.
|
int |
compareStrings(String s1,
String s2)
Compare two objects.
|
Object |
getCollationKey(String s)
Get a collation key for two Strings.
|
public AlphanumericCollator(StringCollator base)
base - the collation used to compare the alphabetic parts of the stringpublic int compareStrings(String s1, String s2)
compareStrings in interface StringCollators1 - the first strings2 - the second stringpublic boolean comparesEqual(String s1, String s2)
comparesEqual in interface StringCollators1 - the first strings2 - the second stringpublic Object getCollationKey(String s)
getCollationKey in interface StringCollators - the string whose collation key is requiredCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.