public class UCACollator
extends java.text.Collator
Constructor and Description |
---|
UCACollator() |
UCACollator(java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String source,
java.lang.String target) |
java.text.CollationKey |
getCollationKey(java.lang.String source) |
com.ibm.icu.util.ULocale |
getLocale() |
static java.lang.String[] |
getLocales()
Return the locales supported in this version of ICU
Note that with Java 6 this method has been known to throw an array index exception from RuleBasedCollator,
With Java 7 this performs correctly and getAvailableLocales() does not appear to be
invoked from any of the UCA or numbering support.
|
static java.lang.String |
getUCAVersion()
Return the version of UCA supported
|
int |
hashCode() |
void |
setProps(java.util.Properties props)
Set the properties for the UCA collation
|
void |
setStrength(int newStrength) |
java.lang.String |
show() |
public UCACollator()
public UCACollator(java.lang.String uri) throws XPathException
XPathException
public static java.lang.String getUCAVersion()
public static java.lang.String[] getLocales()
public int compare(java.lang.String source, java.lang.String target)
compare
in class java.text.Collator
public java.lang.String show()
public java.text.CollationKey getCollationKey(java.lang.String source)
getCollationKey
in class java.text.Collator
public int hashCode()
hashCode
in class java.text.Collator
public void setProps(java.util.Properties props) throws XPathException
props
- the set of properties parsed from the UCA parametersXPathException
public void setStrength(int newStrength)
setStrength
in class java.text.Collator
public com.ibm.icu.util.ULocale getLocale()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.