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 |
|
|
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; |