Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jssun / util / calendar / Era.js
index 3af1bcf..d9a584e 100644 (file)
@@ -1,80 +1,80 @@
-Clazz.declarePackage ("jssun.util.calendar");\r
-Clazz.load (null, "jssun.util.calendar.Era", ["java.lang.StringBuilder", "jssun.util.calendar.CalendarSystem", "$.ImmutableGregorianDate"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.name = null;\r
-this.abbr = null;\r
-this.since = 0;\r
-this.sinceDate = null;\r
-this.localTime = false;\r
-this.hash = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.util.calendar, "Era");\r
-Clazz.makeConstructor (c$, \r
-function (name, abbr, since, localTime) {\r
-this.name = name;\r
-this.abbr = abbr;\r
-this.since = since;\r
-this.localTime = localTime;\r
-var gcal = jssun.util.calendar.CalendarSystem.getGregorianCalendar ();\r
-var d = gcal.newCalendarDate (null);\r
-gcal.getCalendarDate (since, d);\r
-this.sinceDate =  new jssun.util.calendar.ImmutableGregorianDate (d);\r
-}, "~S,~S,~N,~B");\r
-Clazz.defineMethod (c$, "getName", \r
-function () {\r
-return this.name;\r
-});\r
-Clazz.defineMethod (c$, "getDisplayName", \r
-function (locale) {\r
-return this.name;\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getAbbreviation", \r
-function () {\r
-return this.abbr;\r
-});\r
-Clazz.defineMethod (c$, "getDiaplayAbbreviation", \r
-function (locale) {\r
-return this.abbr;\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getSince", \r
-function (zone) {\r
-if (zone == null || !this.localTime) {\r
-return this.since;\r
-}var offset = zone.getOffset (this.since);\r
-return this.since - offset;\r
-}, "java.util.TimeZone");\r
-Clazz.defineMethod (c$, "getSinceDate", \r
-function () {\r
-return this.sinceDate;\r
-});\r
-Clazz.defineMethod (c$, "isLocalTime", \r
-function () {\r
-return this.localTime;\r
-});\r
-Clazz.overrideMethod (c$, "equals", \r
-function (o) {\r
-if (!(Clazz.instanceOf (o, jssun.util.calendar.Era))) {\r
-return false;\r
-}var that = o;\r
-return this.name.equals (that.name) && this.abbr.equals (that.abbr) && this.since == that.since && this.localTime == that.localTime;\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-if (this.hash == 0) {\r
-this.hash = this.name.hashCode () ^ this.abbr.hashCode () ^ this.since ^ (this.since >> 32) ^ (this.localTime ? 1 : 0);\r
-}return this.hash;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-var sb =  new StringBuilder ();\r
-sb.append ('[');\r
-sb.append (this.getName ()).append (" (");\r
-sb.append (this.getAbbreviation ()).append (')');\r
-sb.append (" since ").append (this.getSinceDate ());\r
-if (this.localTime) {\r
-sb.setLength (sb.length () - 1);\r
-sb.append (" local time");\r
-}sb.append (']');\r
-return sb.toString ();\r
-});\r
-});\r
+Clazz.declarePackage ("jssun.util.calendar");
+Clazz.load (null, "jssun.util.calendar.Era", ["java.lang.StringBuilder", "jssun.util.calendar.CalendarSystem", "$.ImmutableGregorianDate"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.name = null;
+this.abbr = null;
+this.since = 0;
+this.sinceDate = null;
+this.localTime = false;
+this.hash = 0;
+Clazz.instantialize (this, arguments);
+}, jssun.util.calendar, "Era");
+Clazz.makeConstructor (c$, 
+function (name, abbr, since, localTime) {
+this.name = name;
+this.abbr = abbr;
+this.since = since;
+this.localTime = localTime;
+var gcal = jssun.util.calendar.CalendarSystem.getGregorianCalendar ();
+var d = gcal.newCalendarDate (null);
+gcal.getCalendarDate (since, d);
+this.sinceDate =  new jssun.util.calendar.ImmutableGregorianDate (d);
+}, "~S,~S,~N,~B");
+Clazz.defineMethod (c$, "getName", 
+function () {
+return this.name;
+});
+Clazz.defineMethod (c$, "getDisplayName", 
+function (locale) {
+return this.name;
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getAbbreviation", 
+function () {
+return this.abbr;
+});
+Clazz.defineMethod (c$, "getDiaplayAbbreviation", 
+function (locale) {
+return this.abbr;
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getSince", 
+function (zone) {
+if (zone == null || !this.localTime) {
+return this.since;
+}var offset = zone.getOffset (this.since);
+return this.since - offset;
+}, "java.util.TimeZone");
+Clazz.defineMethod (c$, "getSinceDate", 
+function () {
+return this.sinceDate;
+});
+Clazz.defineMethod (c$, "isLocalTime", 
+function () {
+return this.localTime;
+});
+Clazz.overrideMethod (c$, "equals", 
+function (o) {
+if (!(Clazz.instanceOf (o, jssun.util.calendar.Era))) {
+return false;
+}var that = o;
+return this.name.equals (that.name) && this.abbr.equals (that.abbr) && this.since == that.since && this.localTime == that.localTime;
+}, "~O");
+Clazz.overrideMethod (c$, "hashCode", 
+function () {
+if (this.hash == 0) {
+this.hash = this.name.hashCode () ^ this.abbr.hashCode () ^ this.since ^ (this.since >> 32) ^ (this.localTime ? 1 : 0);
+}return this.hash;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+var sb =  new StringBuilder ();
+sb.append ('[');
+sb.append (this.getName ()).append (" (");
+sb.append (this.getAbbreviation ()).append (')');
+sb.append (" since ").append (this.getSinceDate ());
+if (this.localTime) {
+sb.setLength (sb.length () - 1);
+sb.append (" local time");
+}sb.append (']');
+return sb.toString ();
+});
+});