96 |
* |
* |
97 |
* @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. |
98 |
*/ |
*/ |
99 |
public static final int |
public static final int primaryOrder (int order) |
|
primaryOrder(int value) |
|
100 |
{ |
{ |
101 |
return((int)((value & 0xFFFF0000L) >> 16)); |
// From the JDK 1.2 spec. |
102 |
|
return order >>> 16; |
103 |
} |
} |
104 |
|
|
105 |
/*************************************************************************/ |
/*************************************************************************/ |
112 |
* |
* |
113 |
* @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. |
114 |
*/ |
*/ |
115 |
public static final int |
public static final short secondaryOrder (int order) |
|
secondaryOrder(int value) |
|
116 |
{ |
{ |
117 |
return((value & 0xFF00) >> 8); |
// From the JDK 1.2 spec. |
118 |
|
return (short) ((order >>> 8) & 255); |
119 |
} |
} |
120 |
|
|
121 |
/*************************************************************************/ |
/*************************************************************************/ |
128 |
* |
* |
129 |
* @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. |
130 |
*/ |
*/ |
131 |
public static final int |
public static final short tertiaryOrder (int order) |
|
tertiaryOrder(int value) |
|
132 |
{ |
{ |
133 |
return(value & 0xFF); |
// From the JDK 1.2 spec. |
134 |
|
return (short) (order & 255); |
135 |
} |
} |
136 |
|
|
137 |
/*************************************************************************/ |
/*************************************************************************/ |