CollationElementIteratorNameCollationElementIteratorSynopsis
DescriptionA RuleBasedCollator object creates an instance of the CollationElementIterator class to iterate through the characters of a string and determine their relative collation sequence. A CollationElementIterator object performs callbacks to the RuleBasedCollator that created it to get the information it needs to recognize groups of characters that are treated as single collation characters. For example, a RuleBasedCollator for a Spanish language locale would be set up to treat `ch' as a single letter. A CollationElementIterator object also gets information from its RuleBasedCollator that is used to determine the collation ordering priority for characters. A collation-ordering priority of a character is a composite integer value that determines how the character is collated. This priority is comprised of:
The next() method returns the collation-ordering priority of the next logical character. Primary, secondary, and tertiary orders are extracted from an ordering priority with the primaryOrder(), secondaryOrder(), and tertiaryOrder() methods. Class Summary
public final class java.text.CollationElementIterator extends java.lang.Object { // Constants public static final int NULLORDER; // Class Methods public static final int primaryOrder(int order); public static final short secondaryOrder(int order); public static final short tertiaryOrder(int order); // Instance Methods public int next(); public void reset(); } ConstantsNULLORDERpublic final static int NULLORDER
Class MethodsprimaryOrderpublic static final int primaryOrder(int order)
secondaryOrderpublic static final short secondaryOrder(int order)
tertiaryOrderpublic static final short tertiaryOrder(int order)
Instance Methodsnextpublic int next()
resetpublic void reset()
Inherited Methods
See AlsoCollator, RuleBasedCollator, String |
|