/[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.32 by tromey, Sat Sep 17 21:58:41 2005 UTC revision 1.33 by tromey, Sun Sep 18 23:00:24 2005 UTC
# Line 198  public final class Float extends Number Line 198  public final class Float extends Number
198    }    }
199    
200    /**    /**
201       * Returns a <code>Float</code> object wrapping the value.
202       * In contrast to the <code>Float</code> constructor, this method
203       * may cache some values.  It is used by boxing conversion.
204       *
205       * @param val the value to wrap
206       * @return the <code>Float</code>
207       *
208       * @since 1.5
209       */
210      public static Float valueOf(float val)
211      {
212        // We don't actually cache, but we could.
213        return new Float(val);
214      }
215    
216      /**
217     * Parse the specified <code>String</code> as a <code>float</code>. The     * Parse the specified <code>String</code> as a <code>float</code>. The
218     * extended BNF grammar is as follows:<br>     * extended BNF grammar is as follows:<br>
219     * <pre>     * <pre>

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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