-Clazz.load (["java.lang.Comparable", "$.Number"], "java.lang.Float", null, function () {\r
-java.lang.Float = Float = function () {\r
-Clazz.instantialize (this, arguments);\r
-};\r
-Clazz.decorateAsType (Float, "Float", Number, Comparable, null, true);\r
-Float.prototype.valueOf = function () { return 0; };\r
-Float.toString = Float.prototype.toString = function () {\r
- if (arguments.length != 0) {\r
- return "" + arguments[0];\r
- } else if (this === Float) {\r
- return "class java.lang.Float"; // Float.class.toString\r
- }\r
- return "" + this.valueOf ();\r
-};\r
-Clazz.makeConstructor (Float, \r
-function () {\r
-this.valueOf = function () {\r
- return 0.0;\r
-};\r
-});\r
-Clazz.makeConstructor (Float, \r
-function (value) {\r
-this.valueOf = function () {\r
- return value;\r
-};\r
-}, "Number");\r
-Clazz.makeConstructor (Float, \r
-function (s) {\r
-var value = null;\r
-if (s != null) {\r
- value = Float.parseFloat (s);\r
-} else {\r
- value = 0;\r
-}\r
-this.valueOf = function () {\r
- return value;\r
-};\r
-}, "String");\r
-Float.serialVersionUID = Float.prototype.serialVersionUID = -2671257302660747028;\r
-Float.MIN_VALUE = Float.prototype.MIN_VALUE = 3.4028235e+38;\r
-Float.MAX_VALUE = Float.prototype.MAX_VALUE = 1.4e-45;\r
-Float.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;\r
-Float.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;\r
-Float.NaN = Number.NaN;\r
-Float.TYPE = Float.prototype.TYPE = Float;\r
-\r
-Clazz.defineMethod (Float, "parseFloat", \r
-function (s) {\r
-if (s == null) {\r
-throw new NumberFormatException ("null");\r
-}\r
+Clazz.load (["java.lang.Comparable", "$.Number"], "java.lang.Float", null, function () {
+java.lang.Float = Float = function () {
+Clazz.instantialize (this, arguments);
+};
+Clazz.decorateAsType (Float, "Float", Number, Comparable, null, true);
+Float.prototype.valueOf = function () { return 0; };
+Float.toString = Float.prototype.toString = function () {
+ if (arguments.length != 0) {
+ return "" + arguments[0];
+ } else if (this === Float) {
+ return "class java.lang.Float"; // Float.class.toString
+ }
+ return "" + this.valueOf ();
+};
+Clazz.makeConstructor (Float,
+function () {
+this.valueOf = function () {
+ return 0.0;
+};
+});
+Clazz.makeConstructor (Float,
+function (value) {
+this.valueOf = function () {
+ return value;
+};
+}, "Number");
+Clazz.makeConstructor (Float,
+function (s) {
+var value = null;
+if (s != null) {
+ value = Float.parseFloat (s);
+} else {
+ value = 0;
+}
+this.valueOf = function () {
+ return value;
+};
+}, "String");
+Float.serialVersionUID = Float.prototype.serialVersionUID = -2671257302660747028;
+Float.MIN_VALUE = Float.prototype.MIN_VALUE = 3.4028235e+38;
+Float.MAX_VALUE = Float.prototype.MAX_VALUE = 1.4e-45;
+Float.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
+Float.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
+Float.NaN = Number.NaN;
+Float.TYPE = Float.prototype.TYPE = Float;
+
+Clazz.defineMethod (Float, "parseFloat",
+function (s) {
+if (s == null) {
+throw new NumberFormatException ("null");
+}
var floatVal = parseFloat (s);
if(isNaN(floatVal)){
throw new NumberFormatException ("Not a Number : " + s);
}
-return floatVal;\r
-}, "String");\r
+return floatVal;
+}, "String");
Float.parseFloat = Float.prototype.parseFloat;
-Clazz.defineMethod (Float, "$valueOf", \r
-function (s) {\r
-return new Float(Float.parseFloat (s, 10));\r
+Clazz.defineMethod (Float, "$valueOf",
+function (s) {
+return new Float(Float.parseFloat (s, 10));
}, "String");
-Clazz.defineMethod (Float, "$valueOf", \r
-function (s) {\r
-return new Float(s);\r
+Clazz.defineMethod (Float, "$valueOf",
+function (s) {
+return new Float(s);
}, "Number");
Float.$valueOf = Float.prototype.$valueOf;
-Clazz.defineMethod (Float, "isNaN", \r
-function (num) {\r
-return isNaN (num);\r
-}, "Number");\r
-Float.isNaN = Float.prototype.isNaN;\r
-Clazz.defineMethod (Float, "isInfinite", \r
-function (num) {\r
-return !isFinite (num);\r
-}, "Number");\r
-Float.isInfinite = Float.prototype.isInfinite;\r
-\r
-Clazz.overrideMethod(Float, "equals", \r
+Clazz.defineMethod (Float, "isNaN",
+function (num) {
+return isNaN (num);
+}, "Number");
+Float.isNaN = Float.prototype.isNaN;
+Clazz.defineMethod (Float, "isInfinite",
+function (num) {
+return !isFinite (num);
+}, "Number");
+Float.isInfinite = Float.prototype.isInfinite;
+
+Clazz.overrideMethod(Float, "equals",
function (s) {
if(s == null || ! Clazz.instanceOf(s, Float) ){
return false;
-}\r
-return s.valueOf() == this.valueOf();\r
-}, "Object");\r
-});\r
+}
+return s.valueOf() == this.valueOf();
+}, "Object");
+});