--- jsr166/src/main/java/util/Deque.java 2017/08/23 20:17:53 1.40
+++ jsr166/src/main/java/util/Deque.java 2018/10/01 00:10:53 1.42
@@ -112,8 +112,8 @@ package java.util;
*
Deques can also be used as LIFO (Last-In-First-Out) stacks. This
* interface should be used in preference to the legacy {@link Stack} class.
* When a deque is used as a stack, elements are pushed and popped from the
- * beginning of the deque. Stack methods are precisely equivalent to
- * {@code Deque} methods as indicated in the table below:
+ * beginning of the deque. Stack methods are equivalent to {@code Deque}
+ * methods as indicated in the table below:
*
*
* Comparison of Stack and Deque methods
@@ -134,7 +134,7 @@ package java.util;
*
*
* {@link #peek() peek()} |
- * {@link #peekFirst() peekFirst()} |
+ * {@link #getFirst() getFirst()} |
*
*
*
@@ -164,7 +164,7 @@ package java.util;
* {@code Object}.
*
* This interface is a member of the
- *
+ *
* Java Collections Framework.
*
* @author Doug Lea
@@ -334,10 +334,10 @@ public interface Deque extends Queue<
* @return {@code true} if an element was removed as a result of this call
* @throws ClassCastException if the class of the specified element
* is incompatible with this deque
- * (optional)
+ * (optional)
* @throws NullPointerException if the specified element is null and this
* deque does not permit null elements
- * (optional)
+ * (optional)
*/
boolean removeFirstOccurrence(Object o);
@@ -353,10 +353,10 @@ public interface Deque extends Queue<
* @return {@code true} if an element was removed as a result of this call
* @throws ClassCastException if the class of the specified element
* is incompatible with this deque
- * (optional)
+ * (optional)
* @throws NullPointerException if the specified element is null and this
* deque does not permit null elements
- * (optional)
+ * (optional)
*/
boolean removeLastOccurrence(Object o);
@@ -536,10 +536,10 @@ public interface Deque extends Queue<
* @return {@code true} if an element was removed as a result of this call
* @throws ClassCastException if the class of the specified element
* is incompatible with this deque
- * (optional)
+ * (optional)
* @throws NullPointerException if the specified element is null and this
* deque does not permit null elements
- * (optional)
+ * (optional)
*/
boolean remove(Object o);
@@ -552,10 +552,10 @@ public interface Deque extends Queue<
* @return {@code true} if this deque contains the specified element
* @throws ClassCastException if the class of the specified element
* is incompatible with this deque
- * (optional)
+ * (optional)
* @throws NullPointerException if the specified element is null and this
* deque does not permit null elements
- * (optional)
+ * (optional)
*/
boolean contains(Object o);