|
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 | * |
@@ -100,97 +124,87 @@ public int getLocalTimezoneOffsetMinutes() { |
100 | 124 | return getLocalTimezoneOffsetMillis() / 60000; |
101 | 125 | } |
102 | 126 |
|
103 | | - public Duration newDuration(long arg0) { |
104 | | - return factory.newDuration(arg0); |
| 127 | + public Duration newDuration(final long durationInMilliSeconds) { |
| 128 | + return factory.newDuration(durationInMilliSeconds); |
105 | 129 | } |
106 | 130 |
|
107 | | - public Duration newDuration(String arg0) { |
108 | | - return factory.newDuration(arg0); |
| 131 | + public Duration newDuration(final String lexicalRepresentation) { |
| 132 | + return factory.newDuration(lexicalRepresentation); |
109 | 133 | } |
110 | 134 |
|
111 | | - public Duration newDuration( |
112 | | - final boolean isPositive, |
113 | | - final int years, |
114 | | - final int months, |
115 | | - final int days, |
116 | | - final int hours, |
117 | | - final int minutes, |
118 | | - final int seconds) { |
119 | | - |
| 135 | + public Duration newDuration(final boolean isPositive, final int years, final int months, final int days, final int hours, final int minutes, final int seconds) { |
120 | 136 | return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds); |
121 | 137 | } |
122 | 138 |
|
123 | | - public Duration newDuration(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4, BigInteger arg5, BigDecimal arg6) { |
124 | | - return factory.newDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6); |
| 139 | + public Duration newDuration(final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) { |
| 140 | + return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds); |
125 | 141 | } |
126 | 142 |
|
127 | | - public Duration newDurationDayTime(long arg0) { |
128 | | - return factory.newDurationDayTime(arg0); |
| 143 | + public Duration newDurationDayTime(final long durationInMilliseconds) { |
| 144 | + return factory.newDurationDayTime(durationInMilliseconds); |
129 | 145 | } |
130 | 146 |
|
131 | | - public Duration newDurationDayTime(String arg0) { |
132 | | - return factory.newDurationDayTime(arg0); |
| 147 | + public Duration newDurationDayTime(final String lexicalRepresentation) { |
| 148 | + return factory.newDurationDayTime(lexicalRepresentation); |
133 | 149 | } |
134 | 150 |
|
135 | | - public Duration newDurationDayTime(boolean arg0, int arg1, int arg2, int arg3, int arg4) { |
136 | | - return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4); |
| 151 | + public Duration newDurationDayTime(final boolean isPositive, final int day, final int hour, final int minute, final int second) { |
| 152 | + return factory.newDurationDayTime(isPositive, day, hour, minute, second); |
137 | 153 | } |
138 | 154 |
|
139 | | - public Duration newDurationDayTime(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4) { |
140 | | - return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4); |
| 155 | + public Duration newDurationDayTime(final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) { |
| 156 | + return factory.newDurationDayTime(isPositive, day, hour, minute, second); |
141 | 157 | } |
142 | 158 |
|
143 | | - public Duration newDurationYearMonth(long arg0) { |
144 | | - return factory.newDurationYearMonth(arg0); |
| 159 | + public Duration newDurationYearMonth(final long durationInMilliseconds) { |
| 160 | + return factory.newDurationYearMonth(durationInMilliseconds); |
145 | 161 | } |
146 | 162 |
|
147 | | - public Duration newDurationYearMonth(String arg0) { |
148 | | - return factory.newDurationYearMonth(arg0); |
| 163 | + public Duration newDurationYearMonth(final String lexicalRepresentation) { |
| 164 | + return factory.newDurationYearMonth(lexicalRepresentation); |
149 | 165 | } |
150 | 166 |
|
151 | | - public Duration newDurationYearMonth(boolean arg0, int arg1, int arg2) { |
152 | | - return factory.newDurationYearMonth(arg0, arg1, arg2); |
| 167 | + public Duration newDurationYearMonth(final boolean isPositive, final int year, final int month) { |
| 168 | + return factory.newDurationYearMonth(isPositive, year, month); |
153 | 169 | } |
154 | 170 |
|
155 | | - public Duration newDurationYearMonth(boolean arg0, BigInteger arg1, BigInteger arg2) { |
156 | | - return factory.newDurationYearMonth(arg0, arg1, arg2); |
| 171 | + public Duration newDurationYearMonth(final boolean isPositive, final BigInteger year, final BigInteger month) { |
| 172 | + return factory.newDurationYearMonth(isPositive, year, month); |
157 | 173 | } |
158 | 174 |
|
159 | 175 | public XMLGregorianCalendar newXMLGregorianCalendar() { |
160 | 176 | return factory.newXMLGregorianCalendar(); |
161 | 177 | } |
162 | 178 |
|
163 | | - public XMLGregorianCalendar newXMLGregorianCalendar(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) { |
164 | | - return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5, |
165 | | - arg6, arg7); |
| 179 | + 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) { |
| 180 | + return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, millisecond, timezone); |
166 | 181 | } |
167 | 182 |
|
168 | | - public XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation) { |
| 183 | + public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) { |
169 | 184 | return factory.newXMLGregorianCalendar(lexicalRepresentation); |
170 | 185 | } |
171 | 186 |
|
172 | | - public XMLGregorianCalendar newXMLGregorianCalendar(BigInteger arg0, int arg1, int arg2, int arg3, int arg4, int arg5, BigDecimal arg6, int arg7) { |
173 | | - return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5, |
174 | | - arg6, arg7); |
| 187 | + 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) { |
| 188 | + return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, fractionalSecond, timezone); |
175 | 189 | } |
176 | 190 |
|
177 | | - public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar arg0) { |
178 | | - return factory.newXMLGregorianCalendar(arg0); |
| 191 | + public XMLGregorianCalendar newXMLGregorianCalendar(final GregorianCalendar cal) { |
| 192 | + return factory.newXMLGregorianCalendar(cal); |
179 | 193 | } |
180 | 194 |
|
181 | | - public XMLGregorianCalendar newXMLGregorianCalendarDate(int arg0, int arg1, int arg2, int arg3) { |
182 | | - return factory.newXMLGregorianCalendarDate(arg0, arg1, arg2, arg3); |
| 195 | + public XMLGregorianCalendar newXMLGregorianCalendarDate(final int year, final int month, final int day, final int timezone) { |
| 196 | + return factory.newXMLGregorianCalendarDate(year, month, day, timezone); |
183 | 197 | } |
184 | 198 |
|
185 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3) { |
186 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3); |
| 199 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int timezone) { |
| 200 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, timezone); |
187 | 201 | } |
188 | 202 |
|
189 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3, int arg4) { |
190 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4); |
| 203 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int milliseconds, final int timezone) { |
| 204 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, milliseconds, timezone); |
191 | 205 | } |
192 | 206 |
|
193 | | - public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, BigDecimal arg3, int arg4) { |
194 | | - return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4); |
| 207 | + public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final BigDecimal fractionalSecond, final int timezone) { |
| 208 | + return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, fractionalSecond, timezone); |
195 | 209 | } |
196 | 210 | } |
0 commit comments