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.10 by dholmes, Thu Jul 31 07:18:02 2003 UTC vs.
Revision 1.11 by dholmes, Mon Aug 4 01:59:40 2003 UTC

# Line 99 | Line 99 | public interface BlockingQueue<E> extend
99  
100      /**
101       * @throws IllegalStateException if this queue is full
102 <     * @throws NullPointerException if <tt>o<tt> is <tt>null</tt>.
102 >     * @throws NullPointerException if the specified element is <tt>null</tt>.
103       */
104      boolean add(E o);
105  
106      /**
107       * @throws IllegalStateException if this queue is full
108 <     * @throws NullPointerException if any element of <tt>c<tt>
108 >     * @throws NullPointerException if <tt>c</tt> or any element of <tt>c<tt>
109       * is <tt>null</tt>.
110       */
111      boolean addAll(Collection<? extends E> c);
112  
113      /**
114 <     * @throws NullPointerException if <tt>o<tt> is <tt>null</tt>.
114 >     * @throws NullPointerException if the specified element is <tt>null</tt>.
115       */
116      public boolean offer(E o);
117  
# Line 126 | Line 126 | public interface BlockingQueue<E> extend
126       * @return <tt>true</tt> if successful, or <tt>false</tt> if
127       * the specified waiting time elapses before space is available.
128       * @throws InterruptedException if interrupted while waiting.
129 <     * @throws NullPointerException if <tt>o</tt> is <tt>null</tt>.
129 >     * @throws NullPointerException if the specified element is <tt>null</tt>.
130       */
131      boolean offer(E o, long timeout, TimeUnit unit)
132          throws InterruptedException;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines