--- jsr166/src/main/java/util/Queue.java 2005/05/14 02:11:52 1.29
+++ jsr166/src/main/java/util/Queue.java 2005/07/18 01:04:11 1.32
@@ -23,7 +23,7 @@ package java.util;
*
* |
* Throws exception |
- * Special value |
+ * Returns special value |
*
*
* Insert |
@@ -123,10 +123,10 @@ public interface Queue extends Collec
* @return true (as per the spec for {@link Collection#add})
* @throws IllegalStateException if the element cannot be added at this
* time due to capacity restrictions
- * @throws NullPointerException if the specified element is null and
- * this queue not permit null elements
* @throws ClassCastException if the class of the specified element
* prevents it from being added to this queue
+ * @throws NullPointerException if the specified element is null and
+ * this queue not permit null elements
* @throws IllegalArgumentException if some property of this element
* prevents it from being added to this queue
*/
@@ -135,17 +135,17 @@ public interface Queue extends Collec
/**
* Inserts the specified element into this queue if it is possible to do
* so immediately without violating capacity restrictions.
- * When using a capacity-restricted deque, this method is generally
+ * When using a capacity-restricted queue, this method is generally
* preferable to {@link #add}, which can fail to insert an element only
* by throwing an exception.
*
* @param e the element to add
* @return true if the element was added to this queue, else
* false
- * @throws NullPointerException if the specified element is null and
- * this queue does not permit null elements
* @throws ClassCastException if the class of the specified element
* prevents it from being added to this queue
+ * @throws NullPointerException if the specified element is null and
+ * this queue does not permit null elements
* @throws IllegalArgumentException if some property of this element
* prevents it from being added to this queue
*/