PushbackReader.java: Merged with Classpath.

* java/io/PushbackReader.java: Merged with Classpath.
	* java/util/Arrays.java: Updated from Classpath.

	* scripts/blocks.pl: New file.
	* java/lang/Character.java (Subset): New class.
	(UnicodeBlock): New class.

	* java/lang/Math.java (toDegrees, toRadians): New methods.

	* java/lang/Float.java: Implement Comparable.
	(compareTo): New methods.
	* java/lang/Double.java: Implement Comparable.
	(compareTo): New methods.

From-SVN: r37512
This commit is contained in:
Tom Tromey 2000-11-17 04:51:25 +00:00
parent dd3b81b421
commit 98182da528
7 changed files with 1795 additions and 816 deletions

View file

@ -18,7 +18,7 @@ package java.lang;
* Status: Believed complete and correct.
*/
public final class Float extends Number
public final class Float extends Number implements Comparable
{
public static final float MAX_VALUE = 3.4028235e+38f;
public static final float MIN_VALUE = 1.4e-45f;
@ -147,5 +147,25 @@ public final class Float extends Number
public static native float intBitsToFloat (int bits);
}
public int compareTo (Float d)
{
float v = d.value;
if (isNaN (value))
return isNaN (v) ? 1 : 0;
else if (isNaN (v))
return -1;
else if (value == 0.0 && v == -0.0)
return 1;
else if (value == -0.0 && v == 0.0)
return -1;
else if (value == v)
return 0;
return value > v ? 1 : -1;
}
public int compareTo (Object o)
{
return compareTo ((Float) o);
}
}