Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Create a CaseFirstCollator
base - the base collator, which determines how characters are sorted irrespective of case
upperFirst - true if uppercase precedes lowercase, false otherwise
collationURI - the URI of the collation
public int compareStrings(
Compare two string objects: case is irrelevant, unless the strings are equal ignoring
case, in which case lowercase comes first.
compareStrings StringCollator Parameters:
a - the first string
b - the second string
Returns: <0 if a
0 if a>b
- if the objects are of the wrong type for this Comparer
public boolean comparesEqual(
Compare two strings for equality. This may be more efficient than using compareStrings and
testing whether the result is zero, but it must give the same result
comparesEqual StringCollator Parameters:
s1 - the first string
s2 - the second string
Returns: true if and only if the strings are considered equal,
AtomicMatchKey getCollationKey( CharSequence s)
Get a collation key for two Strings. The essential property of collation keys
is that if two values are equal under the collation, then the collation keys are
compare correctly under the equals() method.
getCollationKey StringCollator Parameters:
Returns: the collation key
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.