181 |
* |
* |
182 |
* @return The primary order value of the specified collation value. This is the high 16 bits. |
* @return The primary order value of the specified collation value. This is the high 16 bits. |
183 |
*/ |
*/ |
184 |
public static final int primaryOrder(int order) |
public static int primaryOrder(int order) |
185 |
{ |
{ |
186 |
// From the JDK 1.2 spec. |
// From the JDK 1.2 spec. |
187 |
return order >>> 16; |
return order >>> 16; |
205 |
* |
* |
206 |
* @return The secondary order value of the specified collation value. This is the bits 8-15. |
* @return The secondary order value of the specified collation value. This is the bits 8-15. |
207 |
*/ |
*/ |
208 |
public static final short secondaryOrder(int order) |
public static short secondaryOrder(int order) |
209 |
{ |
{ |
210 |
// From the JDK 1.2 spec. |
// From the JDK 1.2 spec. |
211 |
return (short) ((order >>> 8) & 255); |
return (short) ((order >>> 8) & 255); |
219 |
* |
* |
220 |
* @return The tertiary order value of the specified collation value. This is the low eight bits. |
* @return The tertiary order value of the specified collation value. This is the low eight bits. |
221 |
*/ |
*/ |
222 |
public static final short tertiaryOrder(int order) |
public static short tertiaryOrder(int order) |
223 |
{ |
{ |
224 |
// From the JDK 1.2 spec. |
// From the JDK 1.2 spec. |
225 |
return (short) (order & 255); |
return (short) (order & 255); |