ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/TimeUnit.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.29 by jsr166, Tue Apr 26 01:17:18 2005 UTC vs.
Revision 1.31 by dl, Tue Jun 14 15:09:34 2005 UTC

# Line 216 | Line 216 | public enum TimeUnit {
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  
# Line 226 | Line 227 | public enum TimeUnit {
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  
# Line 234 | Line 236 | public enum TimeUnit {
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  
# Line 255 | Line 258 | public enum TimeUnit {
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       *      ...

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines