|
1 | 1 | /* |
| 2 | + * Elemental |
| 3 | + * Copyright (C) 2024, Evolved Binary Ltd |
| 4 | + * |
| 5 | + |
| 6 | + * https://www.evolvedbinary.com | https://www.elemental.xyz |
| 7 | + * |
| 8 | + * This library is free software; you can redistribute it and/or |
| 9 | + * modify it under the terms of the GNU Lesser General Public |
| 10 | + * License as published by the Free Software Foundation; version 2.1. |
| 11 | + * |
| 12 | + * This library is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | + * Lesser General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU Lesser General Public |
| 18 | + * License along with this library; if not, write to the Free Software |
| 19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | + * |
| 21 | + * NOTE: Parts of this file contain code from 'The eXist-db Authors'. |
| 22 | + * The original license header is included below. |
| 23 | + * |
| 24 | + * ===================================================================== |
| 25 | + * |
2 | 26 | * eXist-db Open Source Native XML Database |
3 | 27 | * Copyright (C) 2001 The eXist-db Authors |
4 | 28 | * |
@@ -98,97 +122,87 @@ public int getLocalTimezoneOffsetMinutes() { |
98 | 122 | return getLocalTimezoneOffsetMillis() / 60000; |
99 | 123 | } |
100 | 124 |
|
101 | | - public Duration newDuration(long arg0) { |
102 | | - return factory.newDuration(arg0); |
| 125 | + public Duration newDuration(final long durationInMilliSeconds) { |
| 126 | + return factory.newDuration(durationInMilliSeconds); |
103 | 127 | } |
104 | 128 |
|
105 | | - public Duration newDuration(String arg0) { |
106 | | - return factory.newDuration(arg0); |
| 129 | + public Duration newDuration(final String lexicalRepresentation) { |
| 130 | + return factory.newDuration(lexicalRepresentation); |
107 | 131 | } |
108 | 132 |
|
109 | | - public Duration newDuration( |
110 | | - final boolean isPositive, |
111 | | - final int years, |
112 | | - final int months, |
113 | | - final int days, |
114 | | - final int hours, |
115 | | - final int minutes, |
116 | | - final int seconds) { |
117 | | - |
| 133 | + public Duration newDuration(final boolean isPositive, final int years, final int months, final int days, final int hours, final int minutes, final int seconds) { |
118 | 134 | return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds); |
119 | 135 | } |
120 | 136 |
|
121 | | - public Duration newDuration(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4, BigInteger arg5, BigDecimal arg6) { |
122 | | - return factory.newDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6); |
| 137 | + public Duration newDuration(final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) { |
| 138 | + return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds); |
123 | 139 | } |
124 | 140 |
|
125 | | - public Duration newDurationDayTime(long arg0) { |
126 | | - return factory.newDurationDayTime(arg0); |
| 141 | + public Duration newDurationDayTime(final long durationInMilliseconds) { |
| 142 | + return factory.newDurationDayTime(durationInMilliseconds); |
127 | 143 | } |
128 | 144 |
|
129 | | - public Duration newDurationDayTime(String arg0) { |
130 | | - return factory.newDurationDayTime(arg0); |
| 145 | + public Duration newDurationDayTime(final String lexicalRepresentation) { |
| 146 | + return factory.newDurationDayTime(lexicalRepresentation); |
131 | 147 | } |
132 | 148 |
|
133 | | - public Duration newDurationDayTime(boolean arg0, int arg1, int arg2, int arg3, int arg4) { |
134 | | - return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4); |
| 149 | + public Duration newDurationDayTime(final boolean isPositive, final int day, final int hour, final int minute, final int second) { |
| 150 | + return factory.newDurationDayTime(isPositive, day, hour, minute, second); |
135 | 151 | } |
136 | 152 |
|
137 | | - public Duration newDurationDayTime(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4) { |
138 | | - return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4); |
| 153 | + public Duration newDurationDayTime(final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) { |
| 154 | + return factory.newDurationDayTime(isPositive, day, hour, minute, second); |
139 | 155 | } |
140 | 156 |
|
141 | | - public Duration newDurationYearMonth(long arg0) { |
142 | | - return factory.newDurationYearMonth(arg0); |
| 157 | + public Duration newDurationYearMonth(final long durationInMilliseconds) { |
| 158 | + return factory.newDurationYearMonth(durationInMilliseconds); |
143 | 159 | } |
144 | 160 |
|
145 | | - public Duration newDurationYearMonth(String arg0) { |
146 | | - return factory.newDurationYearMonth(arg0); |
| 161 | + public Duration newDurationYearMonth(final String lexicalRepresentation) { |
| 162 | + return factory.newDurationYearMonth(lexicalRepresentation); |
147 | 163 | } |
148 | 164 |
|
149 | | - public Duration newDurationYearMonth(boolean arg0, int arg1, int arg2) { |
150 | | - return factory.newDurationYearMonth(arg0, arg1, arg2); |
| 165 | + public Duration newDurationYearMonth(final boolean isPositive, final int year, final int month) { |
| 166 | + return factory.newDurationYearMonth(isPositive, year, month); |
151 | 167 | } |
152 | 168 |
|
153 | | - public Duration newDurationYearMonth(boolean arg0, BigInteger arg1, BigInteger arg2) { |
154 | | - return factory.newDurationYearMonth(arg0, arg1, arg2); |
| 169 | + public Duration newDurationYearMonth(final boolean isPositive, final BigInteger year, final BigInteger month) { |
| 170 | + return factory.newDurationYearMonth(isPositive, year, month); |
155 | 171 | } |
156 | 172 |
|
157 | 173 | public XMLGregorianCalendar newXMLGregorianCalendar() { |
158 | 174 | return factory.newXMLGregorianCalendar(); |
159 | 175 | } |
160 | 176 |
|
161 | | - public XMLGregorianCalendar newXMLGregorianCalendar(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) { |
162 | | - return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5, |
163 | | - arg6, arg7); |
| 177 | + public XMLGregorianCalendar newXMLGregorianCalendar(final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) { |
| 178 | + return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, millisecond, timezone); |
164 | 179 | } |
165 | 180 |
|
166 | | - public XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation) { |
| 181 | + public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) { |
167 | 182 | return factory.newXMLGregorianCalendar(lexicalRepresentation); |
168 | 183 | } |
169 | 184 |
|
170 | | - public XMLGregorianCalendar newXMLGregorianCalendar(BigInteger arg0, int arg1, int arg2, int arg3, int arg4, int arg5, BigDecimal arg6, int arg7) { |
171 | | - return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5, |
172 | | - arg6, arg7); |
| 185 | + public XMLGregorianCalendar newXMLGregorianCalendar(final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) { |
| 186 | + return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, fractionalSecond, timezone); |
173 | 187 | } |
174 | 188 |
|
175 | | - public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar arg0) { |
176 | | - return factory.newXMLGregorianCalendar(arg0); |
| 189 | + public XMLGregorianCalendar newXMLGregorianCalendar(final GregorianCalendar cal) { |
| 190 | + return factory.newXMLGregorianCalendar(cal); |
177 | 191 | } |
178 | 192 |
|
179 | | - public XMLGregorianCalendar newXMLGregorianCalendarDate(int arg0, int arg1, int arg2, int arg3) { |
180 | | - return factory.newXMLGregorianCalendarDate(arg0, arg1, arg2, arg3); |
| 193 | + public XMLGregorianCalendar newXMLGregorianCalendarDate(final int year, final int month, final int day, final int timezone) { |
| 194 | + return factory.newXMLGregorianCalendarDate(year, month, day, timezone); |
181 | 195 | } |
182 | 196 |
|
183 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3) { |
184 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3); |
| 197 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int timezone) { |
| 198 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, timezone); |
185 | 199 | } |
186 | 200 |
|
187 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3, int arg4) { |
188 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4); |
| 201 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int milliseconds, final int timezone) { |
| 202 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, milliseconds, timezone); |
189 | 203 | } |
190 | 204 |
|
191 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, BigDecimal arg3, int arg4) { |
192 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4); |
| 205 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final BigDecimal fractionalSecond, final int timezone) { |
| 206 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, fractionalSecond, timezone); |
193 | 207 | } |
194 | 208 | } |
0 commit comments