Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated.
* Makefile.in: Likewise.
* scripts/makemake.tcl: Use glob -nocomplain.
From-SVN: r107049
This commit is contained in:
@@ -93,6 +93,12 @@ public final class Float extends Number implements Comparable
|
||||
*/
|
||||
public static final Class TYPE = VMClassLoader.getPrimitiveClass('F');
|
||||
|
||||
/**
|
||||
* The number of bits needed to represent a <code>float</code>.
|
||||
* @since 1.5
|
||||
*/
|
||||
public static final int SIZE = 32;
|
||||
|
||||
/**
|
||||
* The immutable value of this Float.
|
||||
*
|
||||
@@ -191,6 +197,22 @@ public final class Float extends Number implements Comparable
|
||||
return new Float(parseFloat(s));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a <code>Float</code> object wrapping the value.
|
||||
* In contrast to the <code>Float</code> constructor, this method
|
||||
* may cache some values. It is used by boxing conversion.
|
||||
*
|
||||
* @param val the value to wrap
|
||||
* @return the <code>Float</code>
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public static Float valueOf(float val)
|
||||
{
|
||||
// We don't actually cache, but we could.
|
||||
return new Float(val);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the specified <code>String</code> as a <code>float</code>. The
|
||||
* extended BNF grammar is as follows:<br>
|
||||
|
||||
Reference in New Issue
Block a user