223 |
} |
} |
224 |
|
|
225 |
/** |
/** |
226 |
* This implements the comparison contract specified by Comparable. |
* Compares this Boolean to another. |
227 |
* @see Comparable |
* |
228 |
|
* @param b the Boolean to compare this Boolean to |
229 |
|
* @return 0 if both Booleans represent the same value, a positive number |
230 |
|
* if this Boolean represents true and the other false, and a negative |
231 |
|
* number otherwise. |
232 |
* @since 1.5 |
* @since 1.5 |
233 |
*/ |
*/ |
234 |
public int compareTo(Boolean other) |
public int compareTo(Boolean other) |
247 |
{ |
{ |
248 |
return "true".equalsIgnoreCase(b) ? true : false; |
return "true".equalsIgnoreCase(b) ? true : false; |
249 |
} |
} |
250 |
|
|
251 |
} |
} |