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.23 by peierls, Thu Dec 30 16:19:15 2004 UTC vs.
Revision 1.24 by peierls, Thu Dec 30 17:57:38 2004 UTC

# Line 202 | Line 202 | public enum TimeUnit {
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);
# Line 210 | Line 212 | public enum TimeUnit {
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);
# Line 218 | Line 222 | public enum TimeUnit {
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);
# Line 226 | Line 232 | public enum TimeUnit {
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines