Skip navigation links
com.essbase.eas.i18n
Class StringCollator
java.lang.Object
java.text.Collator
com.essbase.eas.i18n.StringCollator
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Comparator<java.lang.Object>
-
public class StringCollator
- extends java.text.Collator
implementation of a Collator class that compares objects by calling their toString() method. This is needed because the default Collator object on works on objects that extend the String class.
Fields inherited from class java.text.Collator |
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY |
Methods inherited from class java.text.Collator |
clone, equals, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrength |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CASESENSITIVE
public static final boolean CASESENSITIVE
-
- See Also:
- Constant Field Values
CASEINSENSITIVE
public static final boolean CASEINSENSITIVE
-
- See Also:
- Constant Field Values
hashCode
public int hashCode()
-
- Specified by:
hashCode
in class java.text.Collator
getCollationKey
public java.text.CollationKey getCollationKey(java.lang.String source)
-
- Specified by:
getCollationKey
in class java.text.Collator
compare
public int compare(java.lang.String source,
java.lang.String target)
-
- Specified by:
compare
in class java.text.Collator
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
-
- Specified by:
compare
in interface java.util.Comparator<java.lang.Object>
- Overrides:
compare
in class java.text.Collator
getCollator
public static StringCollator getCollator()
getCollator
public static StringCollator getCollator(boolean casesensitive)
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.