All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.text.TableCollation

java.lang.Object
   |
   +----java.text.Collation
           |
           +----java.text.TableCollation

public class TableCollation
extends Collation
The TableCollation class provides the simple implementation of Collation, using data-driven tables. The user can create a customized table-based collation. TableCollation maps characters to sort keys.

Table Collation has the following restrictions for efficiency (other subclasses may be used for more complex languages) :

1. The French secondary ordering is applied to the whole collation object.

2. All non-mentioned Unicode characters are at the end of the collation order.

3. Private use characters are treated as identical. The private use area in Unicode is 0xE800-0xF8FF.

The collation table is composed of a list of collation rules, where each rule is of three forms:

    < modifier >
    < relation > < text-argument >
    < reset > < text-argument >
 
The following demonstrates how to create your own collation rules: