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

Diff of /classpath/java/lang/Float.java

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

revision 1.24 by ericb, Mon Feb 25 01:36:03 2002 UTC revision 1.25 by ericb, Mon Feb 25 20:02:58 2002 UTC
# Line 327  public final class Float extends Number Line 327  public final class Float extends Number
327     *     *
328     * @return the byte value     * @return the byte value
329     * @since 1.1     * @since 1.1
330     * @XXX Add this method     */
331    public byte byteValue()    public byte byteValue()
332    {    {
333      return (byte) value;      return (byte) value;
334    }    }
    */  
335    
336    /**    /**
337     * Return the value of this <code>Float</code> as a <code>short</code>.     * Return the value of this <code>Float</code> as a <code>short</code>.
338     *     *
339     * @return the short value     * @return the short value
340     * @since 1.1     * @since 1.1
341     * @XXX Add this method     */
342    public short shortValue()    public short shortValue()
343    {    {
344      return (short) value;      return (short) value;
345    }    }
    */  
346    
347    /**    /**
348     * Return the value of this <code>Integer</code> as an <code>int</code>.     * Return the value of this <code>Integer</code> as an <code>int</code>.
# Line 502  public final class Float extends Number Line 500  public final class Float extends Number
500     */     */
501    public int compareTo(Object o)    public int compareTo(Object o)
502    {    {
503      return compareTo(value, ((Float) o).value);      return compare(value, ((Float) o).value);
504    }    }
505    
506    /**    /**

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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