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 |
+ |
* @since 1.6 |
220 |
|
*/ |
221 |
|
public abstract long toMinutes(long duration); |
222 |
|
|
227 |
|
* or <tt>Long.MIN_VALUE</tt> if conversion would negatively |
228 |
|
* overflow, or <tt>Long.MAX_VALUE</tt> if it would positively overflow. |
229 |
|
* @see #convert |
230 |
+ |
* @since 1.6 |
231 |
|
*/ |
232 |
|
public abstract long toHours(long duration); |
233 |
|
|
236 |
|
* @param duration the duration |
237 |
|
* @return the converted duration |
238 |
|
* @see #convert |
239 |
+ |
* @since 1.6 |
240 |
|
*/ |
241 |
|
public abstract long toDays(long duration); |
242 |
|
|
258 |
|
* method (see {@link BlockingQueue#poll BlockingQueue.poll}) |
259 |
|
* using: |
260 |
|
* |
261 |
< |
* <pre> public synchronized Object poll(long timeout, TimeUnit unit) throws InterruptedException { |
261 |
> |
* <pre> public synchronized Object poll(long timeout, TimeUnit unit) throws InterruptedException { |
262 |
|
* while (empty) { |
263 |
|
* unit.timedWait(this, timeout); |
264 |
|
* ... |