Skip navigation links


com.essbase.eas.i18n
Class StringCollator

java.lang.Object
  extended by java.text.Collator
      extended by 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.


Field Summary
static boolean CASEINSENSITIVE
           
static boolean CASESENSITIVE
           

 

Fields inherited from class java.text.Collator
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY

 

Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 int compare(java.lang.String source, java.lang.String target)
           
 java.text.CollationKey getCollationKey(java.lang.String source)
           
static StringCollator getCollator()
           
static StringCollator getCollator(boolean casesensitive)
           
 int hashCode()
           

 

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

 

Field Detail

CASESENSITIVE

public static final boolean CASESENSITIVE
See Also:
Constant Field Values

CASEINSENSITIVE

public static final boolean CASEINSENSITIVE
See Also:
Constant Field Values

Method Detail

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, 2012, Oracle. All rights reserved.