java.text.RuleBasedCollator (JDK 1.1)
This class is a concrete subclass of the abstract Collator class. It performs collations using a table of rules that are specified in textual form. Most applications do not use this class directly; instead they call Collator.getInstance() to obtain a Collator object (typically a RuleBasedCollator object) that implements the default collation order for a specified or default locale. You should only need to use this class if you are collating strings for a locale that is not supported by default, or if you need to implement a highly customized collation order.
public classRuleBasedCollatorextends Collator { //Public ConstructorpublicRuleBasedCollator(Stringrules) throws ParseException; //Public Instance Methodspublic Objectclone(); //Overrides Collatorpublic intcompare(Stringsource, Stringtarget); //Defines Collatorpublic booleanequals(Objectobj); //Overrides Collatorpublic CollationElementIteratorgetCollationElementIterator(Stringsource); public CollationKeygetCollationKey(Stringsource); //Defines Collatorpublic StringgetRules(); public inthashCode(); //Defines Collator}
Hierarchy:
Object->Collator(Cloneable, Serializable)->RuleBasedCollator