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> |