Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jssun / util / calendar / ImmutableGregorianDate.js
index 201639f..c726c61 100644 (file)
-Clazz.declarePackage ("jssun.util.calendar");\r
-Clazz.load (["jssun.util.calendar.BaseCalendar"], "jssun.util.calendar.ImmutableGregorianDate", ["java.lang.NullPointerException", "$.UnsupportedOperationException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.date = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.util.calendar, "ImmutableGregorianDate", jssun.util.calendar.BaseCalendar.Date);\r
-Clazz.makeConstructor (c$, \r
-function (date) {\r
-Clazz.superConstructor (this, jssun.util.calendar.ImmutableGregorianDate, []);\r
-if (date == null) {\r
-throw  new NullPointerException ();\r
-}this.date = date;\r
-}, "jssun.util.calendar.BaseCalendar.Date");\r
-Clazz.defineMethod (c$, "getEra", \r
-function () {\r
-return this.date.getEra ();\r
-});\r
-Clazz.overrideMethod (c$, "setEra", \r
-function (era) {\r
-this.unsupported ();\r
-return this;\r
-}, "jssun.util.calendar.Era");\r
-Clazz.defineMethod (c$, "getYear", \r
-function () {\r
-return this.date.getYear ();\r
-});\r
-Clazz.overrideMethod (c$, "setYear", \r
-function (year) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addYear", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "isLeapYear", \r
-function () {\r
-return this.date.isLeapYear ();\r
-});\r
-Clazz.overrideMethod (c$, "setLeapYear", \r
-function (leapYear) {\r
-this.unsupported ();\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getMonth", \r
-function () {\r
-return this.date.getMonth ();\r
-});\r
-Clazz.overrideMethod (c$, "setMonth", \r
-function (month) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addMonth", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getDayOfMonth", \r
-function () {\r
-return this.date.getDayOfMonth ();\r
-});\r
-Clazz.overrideMethod (c$, "setDayOfMonth", \r
-function (date) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addDayOfMonth", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getDayOfWeek", \r
-function () {\r
-return this.date.getDayOfWeek ();\r
-});\r
-Clazz.defineMethod (c$, "getHours", \r
-function () {\r
-return this.date.getHours ();\r
-});\r
-Clazz.overrideMethod (c$, "setHours", \r
-function (hours) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addHours", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getMinutes", \r
-function () {\r
-return this.date.getMinutes ();\r
-});\r
-Clazz.overrideMethod (c$, "setMinutes", \r
-function (minutes) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addMinutes", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getSeconds", \r
-function () {\r
-return this.date.getSeconds ();\r
-});\r
-Clazz.overrideMethod (c$, "setSeconds", \r
-function (seconds) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addSeconds", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getMillis", \r
-function () {\r
-return this.date.getMillis ();\r
-});\r
-Clazz.overrideMethod (c$, "setMillis", \r
-function (millis) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "addMillis", \r
-function (n) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getTimeOfDay", \r
-function () {\r
-return this.date.getTimeOfDay ();\r
-});\r
-Clazz.overrideMethod (c$, "setDate", \r
-function (year, month, dayOfMonth) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N,~N,~N");\r
-Clazz.overrideMethod (c$, "addDate", \r
-function (year, month, dayOfMonth) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N,~N,~N");\r
-Clazz.defineMethod (c$, "setTimeOfDay", \r
-function (hours, minutes, seconds, millis) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N,~N,~N,~N");\r
-Clazz.overrideMethod (c$, "addTimeOfDay", \r
-function (hours, minutes, seconds, millis) {\r
-this.unsupported ();\r
-return this;\r
-}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "setTimeOfDay", \r
-function (fraction) {\r
-this.unsupported ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "isNormalized", \r
-function () {\r
-return this.date.isNormalized ();\r
-});\r
-Clazz.defineMethod (c$, "isStandardTime", \r
-function () {\r
-return this.date.isStandardTime ();\r
-});\r
-Clazz.overrideMethod (c$, "setStandardTime", \r
-function (standardTime) {\r
-this.unsupported ();\r
-}, "~B");\r
-Clazz.defineMethod (c$, "isDaylightTime", \r
-function () {\r
-return this.date.isDaylightTime ();\r
-});\r
-Clazz.overrideMethod (c$, "setLocale", \r
-function (loc) {\r
-this.unsupported ();\r
-}, "java.util.Locale");\r
-Clazz.defineMethod (c$, "getZone", \r
-function () {\r
-return this.date.getZone ();\r
-});\r
-Clazz.overrideMethod (c$, "setZone", \r
-function (zoneinfo) {\r
-this.unsupported ();\r
-return this;\r
-}, "java.util.TimeZone");\r
-Clazz.defineMethod (c$, "isSameDate", \r
-function (date) {\r
-return date.isSameDate (date);\r
-}, "jssun.util.calendar.CalendarDate");\r
-Clazz.defineMethod (c$, "equals", \r
-function (obj) {\r
-if (this === obj) {\r
-return true;\r
-}if (!(Clazz.instanceOf (obj, jssun.util.calendar.ImmutableGregorianDate))) {\r
-return false;\r
-}return this.date.equals ((obj).date);\r
-}, "~O");\r
-Clazz.defineMethod (c$, "hashCode", \r
-function () {\r
-return this.date.hashCode ();\r
-});\r
-Clazz.defineMethod (c$, "toString", \r
-function () {\r
-return this.date.toString ();\r
-});\r
-Clazz.overrideMethod (c$, "setDayOfWeek", \r
-function (dayOfWeek) {\r
-this.unsupported ();\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "setNormalized", \r
-function (normalized) {\r
-this.unsupported ();\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getZoneOffset", \r
-function () {\r
-return this.date.getZoneOffset ();\r
-});\r
-Clazz.overrideMethod (c$, "setZoneOffset", \r
-function (offset) {\r
-this.unsupported ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getDaylightSaving", \r
-function () {\r
-return this.date.getDaylightSaving ();\r
-});\r
-Clazz.overrideMethod (c$, "setDaylightSaving", \r
-function (daylightSaving) {\r
-this.unsupported ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getNormalizedYear", \r
-function () {\r
-return this.date.getNormalizedYear ();\r
-});\r
-Clazz.overrideMethod (c$, "setNormalizedYear", \r
-function (normalizedYear) {\r
-this.unsupported ();\r
-}, "~N");\r
-Clazz.defineMethod (c$, "unsupported", \r
- function () {\r
-throw  new UnsupportedOperationException ();\r
-});\r
-});\r
+Clazz.declarePackage ("jssun.util.calendar");
+Clazz.load (["jssun.util.calendar.BaseCalendar"], "jssun.util.calendar.ImmutableGregorianDate", ["java.lang.NullPointerException", "$.UnsupportedOperationException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.date = null;
+Clazz.instantialize (this, arguments);
+}, jssun.util.calendar, "ImmutableGregorianDate", jssun.util.calendar.BaseCalendar.Date);
+Clazz.makeConstructor (c$, 
+function (date) {
+Clazz.superConstructor (this, jssun.util.calendar.ImmutableGregorianDate, []);
+if (date == null) {
+throw  new NullPointerException ();
+}this.date = date;
+}, "jssun.util.calendar.BaseCalendar.Date");
+Clazz.defineMethod (c$, "getEra", 
+function () {
+return this.date.getEra ();
+});
+Clazz.overrideMethod (c$, "setEra", 
+function (era) {
+this.unsupported ();
+return this;
+}, "jssun.util.calendar.Era");
+Clazz.defineMethod (c$, "getYear", 
+function () {
+return this.date.getYear ();
+});
+Clazz.overrideMethod (c$, "setYear", 
+function (year) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addYear", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "isLeapYear", 
+function () {
+return this.date.isLeapYear ();
+});
+Clazz.overrideMethod (c$, "setLeapYear", 
+function (leapYear) {
+this.unsupported ();
+}, "~B");
+Clazz.defineMethod (c$, "getMonth", 
+function () {
+return this.date.getMonth ();
+});
+Clazz.overrideMethod (c$, "setMonth", 
+function (month) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addMonth", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getDayOfMonth", 
+function () {
+return this.date.getDayOfMonth ();
+});
+Clazz.overrideMethod (c$, "setDayOfMonth", 
+function (date) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addDayOfMonth", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getDayOfWeek", 
+function () {
+return this.date.getDayOfWeek ();
+});
+Clazz.defineMethod (c$, "getHours", 
+function () {
+return this.date.getHours ();
+});
+Clazz.overrideMethod (c$, "setHours", 
+function (hours) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addHours", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getMinutes", 
+function () {
+return this.date.getMinutes ();
+});
+Clazz.overrideMethod (c$, "setMinutes", 
+function (minutes) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addMinutes", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getSeconds", 
+function () {
+return this.date.getSeconds ();
+});
+Clazz.overrideMethod (c$, "setSeconds", 
+function (seconds) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addSeconds", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getMillis", 
+function () {
+return this.date.getMillis ();
+});
+Clazz.overrideMethod (c$, "setMillis", 
+function (millis) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.overrideMethod (c$, "addMillis", 
+function (n) {
+this.unsupported ();
+return this;
+}, "~N");
+Clazz.defineMethod (c$, "getTimeOfDay", 
+function () {
+return this.date.getTimeOfDay ();
+});
+Clazz.overrideMethod (c$, "setDate", 
+function (year, month, dayOfMonth) {
+this.unsupported ();
+return this;
+}, "~N,~N,~N");
+Clazz.overrideMethod (c$, "addDate", 
+function (year, month, dayOfMonth) {
+this.unsupported ();
+return this;
+}, "~N,~N,~N");
+Clazz.defineMethod (c$, "setTimeOfDay", 
+function (hours, minutes, seconds, millis) {
+this.unsupported ();
+return this;
+}, "~N,~N,~N,~N");
+Clazz.overrideMethod (c$, "addTimeOfDay", 
+function (hours, minutes, seconds, millis) {
+this.unsupported ();
+return this;
+}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "setTimeOfDay", 
+function (fraction) {
+this.unsupported ();
+}, "~N");
+Clazz.defineMethod (c$, "isNormalized", 
+function () {
+return this.date.isNormalized ();
+});
+Clazz.defineMethod (c$, "isStandardTime", 
+function () {
+return this.date.isStandardTime ();
+});
+Clazz.overrideMethod (c$, "setStandardTime", 
+function (standardTime) {
+this.unsupported ();
+}, "~B");
+Clazz.defineMethod (c$, "isDaylightTime", 
+function () {
+return this.date.isDaylightTime ();
+});
+Clazz.overrideMethod (c$, "setLocale", 
+function (loc) {
+this.unsupported ();
+}, "java.util.Locale");
+Clazz.defineMethod (c$, "getZone", 
+function () {
+return this.date.getZone ();
+});
+Clazz.overrideMethod (c$, "setZone", 
+function (zoneinfo) {
+this.unsupported ();
+return this;
+}, "java.util.TimeZone");
+Clazz.defineMethod (c$, "isSameDate", 
+function (date) {
+return date.isSameDate (date);
+}, "jssun.util.calendar.CalendarDate");
+Clazz.defineMethod (c$, "equals", 
+function (obj) {
+if (this === obj) {
+return true;
+}if (!(Clazz.instanceOf (obj, jssun.util.calendar.ImmutableGregorianDate))) {
+return false;
+}return this.date.equals ((obj).date);
+}, "~O");
+Clazz.defineMethod (c$, "hashCode", 
+function () {
+return this.date.hashCode ();
+});
+Clazz.defineMethod (c$, "toString", 
+function () {
+return this.date.toString ();
+});
+Clazz.overrideMethod (c$, "setDayOfWeek", 
+function (dayOfWeek) {
+this.unsupported ();
+}, "~N");
+Clazz.overrideMethod (c$, "setNormalized", 
+function (normalized) {
+this.unsupported ();
+}, "~B");
+Clazz.defineMethod (c$, "getZoneOffset", 
+function () {
+return this.date.getZoneOffset ();
+});
+Clazz.overrideMethod (c$, "setZoneOffset", 
+function (offset) {
+this.unsupported ();
+}, "~N");
+Clazz.defineMethod (c$, "getDaylightSaving", 
+function () {
+return this.date.getDaylightSaving ();
+});
+Clazz.overrideMethod (c$, "setDaylightSaving", 
+function (daylightSaving) {
+this.unsupported ();
+}, "~N");
+Clazz.defineMethod (c$, "getNormalizedYear", 
+function () {
+return this.date.getNormalizedYear ();
+});
+Clazz.overrideMethod (c$, "setNormalizedYear", 
+function (normalizedYear) {
+this.unsupported ();
+}, "~N");
+Clazz.defineMethod (c$, "unsupported", 
+ function () {
+throw  new UnsupportedOperationException ();
+});
+});