246 |
* @see #NEGATIVE_INFINITY |
* @see #NEGATIVE_INFINITY |
247 |
* @since 1.2 |
* @since 1.2 |
248 |
*/ |
*/ |
249 |
public static native double parseDouble(String s) |
public static native double parseDouble(String s); |
|
throws NumberFormatException; |
|
250 |
|
|
251 |
/** |
/** |
252 |
* Return <code>true</code> if the <code>double</code> has the same |
* Return <code>true</code> if the <code>double</code> has the same |
316 |
* |
* |
317 |
* @return the byte value |
* @return the byte value |
318 |
* @since 1.1 |
* @since 1.1 |
319 |
* @XXX Add this method |
*/ |
320 |
public byte byteValue() |
public byte byteValue() |
321 |
{ |
{ |
322 |
return (byte) value; |
return (byte) value; |
323 |
} |
} |
|
*/ |
|
324 |
|
|
325 |
/** |
/** |
326 |
* Return the value of this <code>Double</code> as a <code>short</code>. |
* Return the value of this <code>Double</code> as a <code>short</code>. |
327 |
* |
* |
328 |
* @return the short value |
* @return the short value |
329 |
* @since 1.1 |
* @since 1.1 |
330 |
* @XXX Add this method |
*/ |
331 |
public short shortValue() |
public short shortValue() |
332 |
{ |
{ |
333 |
return (short) value; |
return (short) value; |
334 |
} |
} |
|
*/ |
|
335 |
|
|
336 |
/** |
/** |
337 |
* Return the value of this <code>Double</code> as an <code>int</code>. |
* Return the value of this <code>Double</code> as an <code>int</code>. |
363 |
return (float) value; |
return (float) value; |
364 |
} |
} |
365 |
|
|
366 |
n /** |
/** |
367 |
* Return the value of this <code>Double</code>. |
* Return the value of this <code>Double</code>. |
368 |
* |
* |
369 |
* @return the double value |
* @return the double value |
494 |
*/ |
*/ |
495 |
public int compareTo(Object o) |
public int compareTo(Object o) |
496 |
{ |
{ |
497 |
return compareTo(value, ((Double) o).value); |
return compare(value, ((Double) o).value); |
498 |
} |
} |
499 |
|
|
500 |
/** |
/** |