49 |
|
* returns <tt>true</tt> if <tt>offer</tt> succeeds, else |
50 |
|
* throws an IllegalStateException. |
51 |
|
* |
52 |
< |
* @param o the element |
52 |
> |
* @param e the element |
53 |
|
* @return <tt>true</tt> (as per the general contract of |
54 |
|
* <tt>Collection.add</tt>). |
55 |
|
* |
56 |
|
* @throws NullPointerException if the specified element is <tt>null</tt>. |
57 |
|
* @throws IllegalStateException if the element cannot be added. |
58 |
|
*/ |
59 |
< |
public boolean add(E o) { |
60 |
< |
if (offer(o)) |
59 |
> |
public boolean add(E e) { |
60 |
> |
if (offer(e)) |
61 |
|
return true; |
62 |
|
else |
63 |
|
throw new IllegalStateException("Queue full"); |