--- jsr166/src/main/java/util/Deque.java 2013/02/11 07:42:43 1.23
+++ jsr166/src/main/java/util/Deque.java 2013/05/02 06:38:33 1.25
@@ -29,6 +29,7 @@ package java.util;
*
*
*
+ * Summary of Deque methods
*
* |
* First Element (Head) |
@@ -72,6 +73,7 @@ package java.util;
*
*
*
+ * Comparison of Queue and Deque methods
*
* {@code Queue} Method |
* Equivalent {@code Deque} Method |
@@ -110,6 +112,7 @@ package java.util;
*
*
*
+ * Comparison of Stack and Deque methods
*
* Stack Method |
* Equivalent {@code Deque} Method |
@@ -164,9 +167,10 @@ package java.util;
public interface Deque extends Queue {
/**
* Inserts the specified element at the front of this deque if it is
- * possible to do so immediately without violating capacity restrictions.
- * When using a capacity-restricted deque, it is generally preferable to
- * use method {@link #offerFirst}.
+ * possible to do so immediately without violating capacity restrictions,
+ * throwing an {@code IllegalStateException} if no space is currently
+ * available. When using a capacity-restricted deque, it is generally
+ * preferable to use method {@link #offerFirst}.
*
* @param e the element to add
* @throws IllegalStateException if the element cannot be added at this
@@ -182,9 +186,10 @@ public interface Deque extends Queue<
/**
* Inserts the specified element at the end of this deque if it is
- * possible to do so immediately without violating capacity restrictions.
- * When using a capacity-restricted deque, it is generally preferable to
- * use method {@link #offerLast}.
+ * possible to do so immediately without violating capacity restrictions,
+ * throwing an {@code IllegalStateException} if no space is currently
+ * available. When using a capacity-restricted deque, it is generally
+ * preferable to use method {@link #offerLast}.
*
* This method is equivalent to {@link #add}.
*
@@ -450,8 +455,7 @@ public interface Deque extends Queue<
/**
* Pushes an element onto the stack represented by this deque (in other
* words, at the head of this deque) if it is possible to do so
- * immediately without violating capacity restrictions, returning
- * {@code true} upon success and throwing an
+ * immediately without violating capacity restrictions, throwing an
* {@code IllegalStateException} if no space is currently available.
*
* This method is equivalent to {@link #addFirst}.