public class AlphanumericCollator extends java.lang.Object implements StringCollator, java.io.Serializable
Note: this StringCollator produces an ordering that is not compatible with equals().
?????? |
---|
AlphanumericCollator(StringCollator base)
Create an alphanumeric collation
|
?????? | ????? |
---|---|
int |
compareStrings(java.lang.String s1,
java.lang.String s2)
Compare two objects.
|
java.lang.Object |
getCollationKey(java.lang.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(java.lang.String s1, java.lang.String s2)
compareStrings
???? StringCollator
s1
- the first strings2
- the second stringpublic java.lang.Object getCollationKey(java.lang.String s)
getCollationKey
???? StringCollator
s
- the string whose collation key is required