API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. RuleBasedCollator View Source
Author(s)
Helena Shih, Laura Werner, Richard Gillam
Since
Version
1.25 07/24/98
Serial
Hierarchy
 Object
      Collator
          RuleBasedCollator
Implements
Subclasses
Description
public class RuleBasedCollator
  The RuleBasedCollator class is a concrete subclass of Collator that provides a simple, data-driven, table collator.
Constructors
private RuleBasedCollator (RuleBasedCollator that)
"Copy constructor." Used in clone() for performance.
public RuleBasedCollator (String rules) throws ParseException
  RuleBasedCollator constructor.
pack-private RuleBasedCollator (String rules, int decomp) throws ParseException
  RuleBasedCollator constructor.
Methods
Hide/Show inherited methods
public Object clone () [Overrides Collator]
Standard override; no change in semantics.
public int compare (Object o1, Object o2) [Inherited From Collator]
  Compares its two arguments for order.
publicsynchronized int compare (String source, String target) [Specified in Collator]
  Compares the character data stored in two different strings based on the collation rules.
public boolean equals (Object obj) [Overrides Collator]
  Compares the equality of two collation objects.
public boolean equals (String source, String target) [Inherited From Collator]
  Convenience method for comparing the equality of two strings based on this Collator's collation rules.
publicstaticsynchronized Locale getAvailableLocales () [Inherited From Collator]
  Returns an array of all locales for which the getInstance methods of this class can return localized instances.
public CollationElementIterator getCollationElementIterator (CharacterIterator source)
  Return a CollationElementIterator for the given String.
public CollationElementIterator getCollationElementIterator (String source)
  Return a CollationElementIterator for the given String.
publicsynchronized CollationKey getCollationKey (String source) [Specified in Collator]
  Transforms the string into a series of characters that can be compared with CollationKey.compareTo.
publicsynchronized int getDecomposition () [Inherited From Collator]
  Get the decomposition mode of this Collator.
publicstaticsynchronized Collator getInstance () [Inherited From Collator]
  Gets the Collator for the current default locale.
publicstaticsynchronized Collator getInstance (Locale desiredLocale) [Inherited From Collator]
  Gets the Collator for the desired locale.
public String getRules ()
  Gets the table-based rules for the collation object.
publicsynchronized int getStrength () [Inherited From Collator]
  Returns this Collator's strength property.
pack-private RBCollationTables getTables ()
Allows CollationElementIterator access to the tables object
public int hashCode () [Specified in Collator]
Generates the hash code for the table-based collation object
publicsynchronized void setDecomposition (int decompositionMode) [Inherited From Collator]
  Set the decomposition mode of this Collator.
publicsynchronized void setStrength (int newStrength) [Inherited From Collator]
  Sets this Collator's strength property.
Fields
Hide/Show inherited fields
publicfinalstatic int CANONICAL_DECOMPOSITION = "1" [Inherited From Collator]
  Decomposition mode value.
pack-privatefinalstatic int CHARINDEX = "1879048192"
pack-privatefinalstatic int CONTRACTCHARINDEX = "2130706432"
pack-privatefinalstatic int EQUAL = "0" [Inherited From Collator]
  EQUAL is returned if source string is compared to be equal to target string in the compare() method.
pack-privatefinalstatic int EXPANDCHARINDEX = "2113929216"
publicfinalstatic int FULL_DECOMPOSITION = "2" [Inherited From Collator]
  Decomposition mode value.
pack-privatefinalstatic int GREATER = "1" [Inherited From Collator]
  GREATER is returned if source string is compared to be greater than target string in the compare() method.
publicfinalstatic int IDENTICAL = "3" [Inherited From Collator]
  Collator strength value.
pack-privatefinalstatic int LESS = "-1" [Inherited From Collator]
  LESS is returned if source string is compared to be less than target string in the compare() method.
publicfinalstatic int NO_DECOMPOSITION = "0" [Inherited From Collator]
  Decomposition mode value.
publicfinalstatic int PRIMARY = "0" [Inherited From Collator]
  Collator strength value.
publicfinalstatic int SECONDARY = "1" [Inherited From Collator]
  Collator strength value.
publicfinalstatic int TERTIARY = "2" [Inherited From Collator]
  Collator strength value.
pack-privatefinalstatic int UNMAPPED = "-1"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar