/[classpath]/classpath/java/lang/Double.java
ViewVC logotype

Diff of /classpath/java/lang/Double.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by ericb, Mon Feb 25 01:36:03 2002 UTC revision 1.30 by ericb, Mon Feb 25 20:02:58 2002 UTC
# Line 246  public final class Double extends Number Line 246  public final class Double extends Number
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
# Line 317  public final class Double extends Number Line 316  public final class Double extends Number
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>.
# Line 366  public final class Double extends Number Line 363  public final class Double extends Number
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
# Line 497  n  /** Line 494  n  /**
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    /**    /**

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26