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

Comparing jsr166/src/main/java/util/concurrent/BlockingQueue.java (file contents):
Revision 1.18 by dl, Fri Sep 12 15:40:10 2003 UTC vs.
Revision 1.19 by dl, Sat Sep 13 18:51:10 2003 UTC

# Line 97 | Line 97 | public interface BlockingQueue<E> extend
97       * using queues that may impose insertion restrictions (for
98       * example capacity bounds), method <tt>offer</tt> is generally
99       * preferable to method {@link Collection#add}, which can fail to
100 <     * inserts an element only by throwing an exception.
100 >     * insert an element only by throwing an exception.
101       *
102 <     * @param o the element to insert.
102 >     * @param o the element to add.
103       * @return <tt>true</tt> if it was possible to add the element to
104 <     * this queue, else <tt>false</tt>
105 <     * @throws NullPointerException if the specified element is <tt>null</tt>.
104 >     *         this queue, else <tt>false</tt>
105 >     * @throws NullPointerException if the specified element is <tt>null</tt>
106       */
107      boolean offer(E o);
108  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines