147 |
* This class describes what rank has a character (or a sequence of characters) |
* This class describes what rank has a character (or a sequence of characters) |
148 |
* in the lexicographic order. Each element in a rule has a collation element. |
* in the lexicographic order. Each element in a rule has a collation element. |
149 |
*/ |
*/ |
150 |
final static class CollationElement |
static final class CollationElement |
151 |
{ |
{ |
152 |
String key; |
String key; |
153 |
int primary; |
int primary; |
169 |
this.expansion = expansion; |
this.expansion = expansion; |
170 |
} |
} |
171 |
|
|
172 |
final int getValue() |
int getValue() |
173 |
{ |
{ |
174 |
return (primary << 16) + (secondary << 8) + tertiary; |
return (primary << 16) + (secondary << 8) + tertiary; |
175 |
} |
} |
183 |
* {@link #mergeRules(int,java.lang.String,java.util.ArrayList,java.util.ArrayList)}) |
* {@link #mergeRules(int,java.lang.String,java.util.ArrayList,java.util.ArrayList)}) |
184 |
* as a temporary state while merging two sets of instructions. |
* as a temporary state while merging two sets of instructions. |
185 |
*/ |
*/ |
186 |
final static class CollationSorter |
static final class CollationSorter |
187 |
{ |
{ |
188 |
static final int GREATERP = 0; |
static final int GREATERP = 0; |
189 |
static final int GREATERS = 1; |
static final int GREATERS = 1; |