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

Comparing jsr166/src/jdk7/java/util/concurrent/Callable.java (file contents):
Revision 1.1 by dl, Sun Dec 16 20:55:15 2012 UTC vs.
Revision 1.2 by jsr166, Wed Jan 16 01:39:37 2013 UTC

# Line 9 | Line 9 | package java.util.concurrent;
9   /**
10   * A task that returns a result and may throw an exception.
11   * Implementors define a single method with no arguments called
12 < * <tt>call</tt>.
12 > * {@code call}.
13   *
14 < * <p>The <tt>Callable</tt> interface is similar to {@link
14 > * <p>The {@code Callable} interface is similar to {@link
15   * java.lang.Runnable}, in that both are designed for classes whose
16   * instances are potentially executed by another thread.  A
17 < * <tt>Runnable</tt>, however, does not return a result and cannot
17 > * {@code Runnable}, however, does not return a result and cannot
18   * throw a checked exception.
19   *
20   * <p>The {@link Executors} class contains utility methods to
21 < * convert from other common forms to <tt>Callable</tt> classes.
21 > * convert from other common forms to {@code Callable} classes.
22   *
23   * @see Executor
24   * @since 1.5
25   * @author Doug Lea
26 < * @param <V> the result type of method <tt>call</tt>
26 > * @param <V> the result type of method {@code call}
27   */
28   public interface Callable<V> {
29      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines