Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / text / DecimalFormatSymbols.js
index a9f0c69..ff17faf 100644 (file)
-Clazz.declarePackage ("java.text");\r
-Clazz.load (["java.util.Hashtable"], "java.text.DecimalFormatSymbols", ["java.lang.InternalError", "$.NullPointerException", "java.util.Locale", "jssun.util.resources.LocaleData"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.zeroDigit = '\0';\r
-this.groupingSeparator = '\0';\r
-this.decimalSeparator = '\0';\r
-this.perMill = '\0';\r
-this.percent = '\0';\r
-this.digit = '\0';\r
-this.patternSeparator = '\0';\r
-this.infinity = null;\r
-this.NaN = null;\r
-this.minusSign = '\0';\r
-this.currencySymbol = null;\r
-this.intlCurrencySymbol = null;\r
-this.monetarySeparator = '\0';\r
-this.exponential = '\0';\r
-this.exponentialSeparator = null;\r
-this.locale = null;\r
-this.serialVersionOnStream = 3;\r
-Clazz.instantialize (this, arguments);\r
-}, java.text, "DecimalFormatSymbols", null, Cloneable);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.initialize (java.util.Locale.getDefault ());\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (locale) {\r
-this.initialize (locale);\r
-}, "java.util.Locale");\r
-c$.getInstance = Clazz.defineMethod (c$, "getInstance", \r
-function () {\r
-return java.text.DecimalFormatSymbols.getInstance (java.util.Locale.getDefault ());\r
-});\r
-c$.getInstance = Clazz.defineMethod (c$, "getInstance", \r
-function (locale) {\r
-return  new java.text.DecimalFormatSymbols (locale);\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getZeroDigit", \r
-function () {\r
-return this.zeroDigit;\r
-});\r
-Clazz.defineMethod (c$, "setZeroDigit", \r
-function (zeroDigit) {\r
-this.zeroDigit = zeroDigit;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getGroupingSeparator", \r
-function () {\r
-return this.groupingSeparator;\r
-});\r
-Clazz.defineMethod (c$, "setGroupingSeparator", \r
-function (groupingSeparator) {\r
-this.groupingSeparator = groupingSeparator;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getDecimalSeparator", \r
-function () {\r
-return this.decimalSeparator;\r
-});\r
-Clazz.defineMethod (c$, "setDecimalSeparator", \r
-function (decimalSeparator) {\r
-this.decimalSeparator = decimalSeparator;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getPerMill", \r
-function () {\r
-return this.perMill;\r
-});\r
-Clazz.defineMethod (c$, "setPerMill", \r
-function (perMill) {\r
-this.perMill = perMill;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getPercent", \r
-function () {\r
-return this.percent;\r
-});\r
-Clazz.defineMethod (c$, "setPercent", \r
-function (percent) {\r
-this.percent = percent;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getDigit", \r
-function () {\r
-return this.digit;\r
-});\r
-Clazz.defineMethod (c$, "setDigit", \r
-function (digit) {\r
-this.digit = digit;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getPatternSeparator", \r
-function () {\r
-return this.patternSeparator;\r
-});\r
-Clazz.defineMethod (c$, "setPatternSeparator", \r
-function (patternSeparator) {\r
-this.patternSeparator = patternSeparator;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getInfinity", \r
-function () {\r
-return this.infinity;\r
-});\r
-Clazz.defineMethod (c$, "setInfinity", \r
-function (infinity) {\r
-this.infinity = infinity;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getNaN", \r
-function () {\r
-return this.NaN;\r
-});\r
-Clazz.defineMethod (c$, "setNaN", \r
-function (NaN) {\r
-this.NaN = NaN;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getMinusSign", \r
-function () {\r
-return this.minusSign;\r
-});\r
-Clazz.defineMethod (c$, "setMinusSign", \r
-function (minusSign) {\r
-this.minusSign = minusSign;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getCurrencySymbol", \r
-function () {\r
-return this.currencySymbol;\r
-});\r
-Clazz.defineMethod (c$, "setCurrencySymbol", \r
-function (currency) {\r
-this.currencySymbol = currency;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getInternationalCurrencySymbol", \r
-function () {\r
-return this.intlCurrencySymbol;\r
-});\r
-Clazz.defineMethod (c$, "setInternationalCurrencySymbol", \r
-function (currencyCode) {\r
-this.intlCurrencySymbol = currencyCode;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getMonetaryDecimalSeparator", \r
-function () {\r
-return this.monetarySeparator;\r
-});\r
-Clazz.defineMethod (c$, "setMonetaryDecimalSeparator", \r
-function (sep) {\r
-this.monetarySeparator = sep;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getExponentialSymbol", \r
-function () {\r
-return this.exponential;\r
-});\r
-Clazz.defineMethod (c$, "getExponentSeparator", \r
-function () {\r
-return this.exponentialSeparator;\r
-});\r
-Clazz.defineMethod (c$, "setExponentialSymbol", \r
-function (exp) {\r
-this.exponential = exp;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "setExponentSeparator", \r
-function (exp) {\r
-if (exp == null) {\r
-throw  new NullPointerException ();\r
-}this.exponentialSeparator = exp;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "clone", \r
-function () {\r
-try {\r
-return Clazz.superCall (this, java.text.DecimalFormatSymbols, "clone", []);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, CloneNotSupportedException)) {\r
-throw  new InternalError ();\r
-} else {\r
-throw e;\r
-}\r
-}\r
-});\r
-Clazz.overrideMethod (c$, "equals", \r
-function (obj) {\r
-if (obj == null) return false;\r
-if (this === obj) return true;\r
-if (this.getClass () !== obj.getClass ()) return false;\r
-var other = obj;\r
-return (this.zeroDigit == other.zeroDigit && this.groupingSeparator == other.groupingSeparator && this.decimalSeparator == other.decimalSeparator && this.percent == other.percent && this.perMill == other.perMill && this.digit == other.digit && this.minusSign == other.minusSign && this.patternSeparator == other.patternSeparator && this.infinity.equals (other.infinity) && this.NaN.equals (other.NaN) && this.currencySymbol.equals (other.currencySymbol) && this.intlCurrencySymbol.equals (other.intlCurrencySymbol) && this.monetarySeparator == other.monetarySeparator && this.exponentialSeparator.equals (other.exponentialSeparator) && this.locale.equals (other.locale));\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-var result = (this.zeroDigit).charCodeAt (0);\r
-result = result * 37 + this.groupingSeparator.charCodeAt (0);\r
-result = result * 37 + this.decimalSeparator.charCodeAt (0);\r
-return result;\r
-});\r
-Clazz.defineMethod (c$, "initialize", \r
- function (locale) {\r
-this.locale = locale;\r
-var needCacheUpdate = false;\r
-var data = java.text.DecimalFormatSymbols.cachedLocaleData.get (locale);\r
-if (data == null) {\r
-data =  new Array (3);\r
-var rb = jssun.util.resources.LocaleData.getNumberFormatData (locale);\r
-data[0] = rb.getStringArray ("NumberElements");\r
-needCacheUpdate = true;\r
-}var numberElements = data[0];\r
-this.decimalSeparator = numberElements[0].charAt (0);\r
-this.groupingSeparator = numberElements[1].charAt (0);\r
-this.patternSeparator = numberElements[2].charAt (0);\r
-this.percent = numberElements[3].charAt (0);\r
-this.zeroDigit = numberElements[4].charAt (0);\r
-this.digit = numberElements[5].charAt (0);\r
-this.minusSign = numberElements[6].charAt (0);\r
-this.exponential = numberElements[7].charAt (0);\r
-this.exponentialSeparator = numberElements[7];\r
-this.perMill = numberElements[8].charAt (0);\r
-this.infinity = numberElements[9];\r
-this.NaN = numberElements[10];\r
-this.intlCurrencySymbol = "XXX";\r
-this.currencySymbol = "\u00A4";\r
-this.monetarySeparator = this.decimalSeparator;\r
-if (needCacheUpdate) {\r
-java.text.DecimalFormatSymbols.cachedLocaleData.put (locale, data);\r
-}}, "java.util.Locale");\r
-Clazz.defineStatics (c$,\r
-"currentSerialVersion", 3);\r
-c$.cachedLocaleData = c$.prototype.cachedLocaleData =  new java.util.Hashtable (3);\r
-});\r
+Clazz.declarePackage ("java.text");
+Clazz.load (["java.util.Hashtable"], "java.text.DecimalFormatSymbols", ["java.lang.InternalError", "$.NullPointerException", "java.util.Locale", "jssun.util.resources.LocaleData"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.zeroDigit = '\0';
+this.groupingSeparator = '\0';
+this.decimalSeparator = '\0';
+this.perMill = '\0';
+this.percent = '\0';
+this.digit = '\0';
+this.patternSeparator = '\0';
+this.infinity = null;
+this.NaN = null;
+this.minusSign = '\0';
+this.currencySymbol = null;
+this.intlCurrencySymbol = null;
+this.monetarySeparator = '\0';
+this.exponential = '\0';
+this.exponentialSeparator = null;
+this.locale = null;
+this.serialVersionOnStream = 3;
+Clazz.instantialize (this, arguments);
+}, java.text, "DecimalFormatSymbols", null, Cloneable);
+Clazz.makeConstructor (c$, 
+function () {
+this.initialize (java.util.Locale.getDefault ());
+});
+Clazz.makeConstructor (c$, 
+function (locale) {
+this.initialize (locale);
+}, "java.util.Locale");
+c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
+function () {
+return java.text.DecimalFormatSymbols.getInstance (java.util.Locale.getDefault ());
+});
+c$.getInstance = Clazz.defineMethod (c$, "getInstance", 
+function (locale) {
+return  new java.text.DecimalFormatSymbols (locale);
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getZeroDigit", 
+function () {
+return this.zeroDigit;
+});
+Clazz.defineMethod (c$, "setZeroDigit", 
+function (zeroDigit) {
+this.zeroDigit = zeroDigit;
+}, "~S");
+Clazz.defineMethod (c$, "getGroupingSeparator", 
+function () {
+return this.groupingSeparator;
+});
+Clazz.defineMethod (c$, "setGroupingSeparator", 
+function (groupingSeparator) {
+this.groupingSeparator = groupingSeparator;
+}, "~S");
+Clazz.defineMethod (c$, "getDecimalSeparator", 
+function () {
+return this.decimalSeparator;
+});
+Clazz.defineMethod (c$, "setDecimalSeparator", 
+function (decimalSeparator) {
+this.decimalSeparator = decimalSeparator;
+}, "~S");
+Clazz.defineMethod (c$, "getPerMill", 
+function () {
+return this.perMill;
+});
+Clazz.defineMethod (c$, "setPerMill", 
+function (perMill) {
+this.perMill = perMill;
+}, "~S");
+Clazz.defineMethod (c$, "getPercent", 
+function () {
+return this.percent;
+});
+Clazz.defineMethod (c$, "setPercent", 
+function (percent) {
+this.percent = percent;
+}, "~S");
+Clazz.defineMethod (c$, "getDigit", 
+function () {
+return this.digit;
+});
+Clazz.defineMethod (c$, "setDigit", 
+function (digit) {
+this.digit = digit;
+}, "~S");
+Clazz.defineMethod (c$, "getPatternSeparator", 
+function () {
+return this.patternSeparator;
+});
+Clazz.defineMethod (c$, "setPatternSeparator", 
+function (patternSeparator) {
+this.patternSeparator = patternSeparator;
+}, "~S");
+Clazz.defineMethod (c$, "getInfinity", 
+function () {
+return this.infinity;
+});
+Clazz.defineMethod (c$, "setInfinity", 
+function (infinity) {
+this.infinity = infinity;
+}, "~S");
+Clazz.defineMethod (c$, "getNaN", 
+function () {
+return this.NaN;
+});
+Clazz.defineMethod (c$, "setNaN", 
+function (NaN) {
+this.NaN = NaN;
+}, "~S");
+Clazz.defineMethod (c$, "getMinusSign", 
+function () {
+return this.minusSign;
+});
+Clazz.defineMethod (c$, "setMinusSign", 
+function (minusSign) {
+this.minusSign = minusSign;
+}, "~S");
+Clazz.defineMethod (c$, "getCurrencySymbol", 
+function () {
+return this.currencySymbol;
+});
+Clazz.defineMethod (c$, "setCurrencySymbol", 
+function (currency) {
+this.currencySymbol = currency;
+}, "~S");
+Clazz.defineMethod (c$, "getInternationalCurrencySymbol", 
+function () {
+return this.intlCurrencySymbol;
+});
+Clazz.defineMethod (c$, "setInternationalCurrencySymbol", 
+function (currencyCode) {
+this.intlCurrencySymbol = currencyCode;
+}, "~S");
+Clazz.defineMethod (c$, "getMonetaryDecimalSeparator", 
+function () {
+return this.monetarySeparator;
+});
+Clazz.defineMethod (c$, "setMonetaryDecimalSeparator", 
+function (sep) {
+this.monetarySeparator = sep;
+}, "~S");
+Clazz.defineMethod (c$, "getExponentialSymbol", 
+function () {
+return this.exponential;
+});
+Clazz.defineMethod (c$, "getExponentSeparator", 
+function () {
+return this.exponentialSeparator;
+});
+Clazz.defineMethod (c$, "setExponentialSymbol", 
+function (exp) {
+this.exponential = exp;
+}, "~S");
+Clazz.defineMethod (c$, "setExponentSeparator", 
+function (exp) {
+if (exp == null) {
+throw  new NullPointerException ();
+}this.exponentialSeparator = exp;
+}, "~S");
+Clazz.defineMethod (c$, "clone", 
+function () {
+try {
+return Clazz.superCall (this, java.text.DecimalFormatSymbols, "clone", []);
+} catch (e) {
+if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
+throw  new InternalError ();
+} else {
+throw e;
+}
+}
+});
+Clazz.overrideMethod (c$, "equals", 
+function (obj) {
+if (obj == null) return false;
+if (this === obj) return true;
+if (this.getClass () !== obj.getClass ()) return false;
+var other = obj;
+return (this.zeroDigit == other.zeroDigit && this.groupingSeparator == other.groupingSeparator && this.decimalSeparator == other.decimalSeparator && this.percent == other.percent && this.perMill == other.perMill && this.digit == other.digit && this.minusSign == other.minusSign && this.patternSeparator == other.patternSeparator && this.infinity.equals (other.infinity) && this.NaN.equals (other.NaN) && this.currencySymbol.equals (other.currencySymbol) && this.intlCurrencySymbol.equals (other.intlCurrencySymbol) && this.monetarySeparator == other.monetarySeparator && this.exponentialSeparator.equals (other.exponentialSeparator) && this.locale.equals (other.locale));
+}, "~O");
+Clazz.overrideMethod (c$, "hashCode", 
+function () {
+var result = (this.zeroDigit).charCodeAt (0);
+result = result * 37 + this.groupingSeparator.charCodeAt (0);
+result = result * 37 + this.decimalSeparator.charCodeAt (0);
+return result;
+});
+Clazz.defineMethod (c$, "initialize", 
+ function (locale) {
+this.locale = locale;
+var needCacheUpdate = false;
+var data = java.text.DecimalFormatSymbols.cachedLocaleData.get (locale);
+if (data == null) {
+data =  new Array (3);
+var rb = jssun.util.resources.LocaleData.getNumberFormatData (locale);
+data[0] = rb.getStringArray ("NumberElements");
+needCacheUpdate = true;
+}var numberElements = data[0];
+this.decimalSeparator = numberElements[0].charAt (0);
+this.groupingSeparator = numberElements[1].charAt (0);
+this.patternSeparator = numberElements[2].charAt (0);
+this.percent = numberElements[3].charAt (0);
+this.zeroDigit = numberElements[4].charAt (0);
+this.digit = numberElements[5].charAt (0);
+this.minusSign = numberElements[6].charAt (0);
+this.exponential = numberElements[7].charAt (0);
+this.exponentialSeparator = numberElements[7];
+this.perMill = numberElements[8].charAt (0);
+this.infinity = numberElements[9];
+this.NaN = numberElements[10];
+this.intlCurrencySymbol = "XXX";
+this.currencySymbol = "\u00A4";
+this.monetarySeparator = this.decimalSeparator;
+if (needCacheUpdate) {
+java.text.DecimalFormatSymbols.cachedLocaleData.put (locale, data);
+}}, "java.util.Locale");
+Clazz.defineStatics (c$,
+"currentSerialVersion", 3);
+c$.cachedLocaleData = c$.prototype.cachedLocaleData =  new java.util.Hashtable (3);
+});