202 |
|
/** |
203 |
|
* Equivalent to <tt>SECONDS.convert(duration, this)</tt>. |
204 |
|
* @param duration the duration |
205 |
< |
* @return the converted duration. |
205 |
> |
* @return the converted duration, |
206 |
> |
* or <tt>Long.MIN_VALUE</tt> if conversion would negatively |
207 |
> |
* overflow, or <tt>Long.MAX_VALUE</tt> if it would positively overflow. |
208 |
|
* @see #convert |
209 |
|
*/ |
210 |
|
public abstract long toSeconds(long duration); |
212 |
|
/** |
213 |
|
* Equivalent to <tt>MINUTES.convert(duration, this)</tt>. |
214 |
|
* @param duration the duration |
215 |
< |
* @return the converted duration. |
215 |
> |
* @return the converted duration, |
216 |
> |
* or <tt>Long.MIN_VALUE</tt> if conversion would negatively |
217 |
> |
* overflow, or <tt>Long.MAX_VALUE</tt> if it would positively overflow. |
218 |
|
* @see #convert |
219 |
|
*/ |
220 |
|
public abstract long toMinutes(long duration); |
222 |
|
/** |
223 |
|
* Equivalent to <tt>HOURS.convert(duration, this)</tt>. |
224 |
|
* @param duration the duration |
225 |
< |
* @return the converted duration. |
225 |
> |
* @return the converted duration, |
226 |
> |
* or <tt>Long.MIN_VALUE</tt> if conversion would negatively |
227 |
> |
* overflow, or <tt>Long.MAX_VALUE</tt> if it would positively overflow. |
228 |
|
* @see #convert |
229 |
|
*/ |
230 |
|
public abstract long toHours(long duration); |
232 |
|
/** |
233 |
|
* Equivalent to <tt>DAYS.convert(duration, this)</tt>. |
234 |
|
* @param duration the duration |
235 |
< |
* @return the converted duration. |
235 |
> |
* @return the converted duration |
236 |
|
* @see #convert |
237 |
|
*/ |
238 |
|
public abstract long toDays(long duration); |