ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Deque.java
(Generate patch)

Comparing jsr166/src/main/java/util/Deque.java (file contents):
Revision 1.37 by jsr166, Sat May 6 06:55:50 2017 UTC vs.
Revision 1.39 by jsr166, Wed May 31 19:02:33 2017 UTC

# Line 27 | Line 27 | package java.util;
27   * <p>The twelve methods described above are summarized in the
28   * following table:
29   *
30 < * <table BORDER CELLPADDING=3 CELLSPACING=1>
30 > * <table class="plain">
31   * <caption>Summary of Deque methods</caption>
32   *  <tr>
33   *    <td></td>
# Line 70 | Line 70 | package java.util;
70   * inherited from the {@code Queue} interface are precisely equivalent to
71   * {@code Deque} methods as indicated in the following table:
72   *
73 < * <table BORDER CELLPADDING=3 CELLSPACING=1>
73 > * <table class="plain">
74   * <caption>Comparison of Queue and Deque methods</caption>
75   *  <tr>
76   *    <td style="text-align:center"> <b>{@code Queue} Method</b></td>
# Line 108 | Line 108 | package java.util;
108   * beginning of the deque.  Stack methods are precisely equivalent to
109   * {@code Deque} methods as indicated in the table below:
110   *
111 < * <table BORDER CELLPADDING=3 CELLSPACING=1>
111 > * <table class="plain">
112   * <caption>Comparison of Stack and Deque methods</caption>
113   *  <tr>
114   *    <td style="text-align:center"> <b>Stack Method</b></td>
# Line 448 | Line 448 | public interface Deque<E> extends Queue<
448       */
449      E peek();
450  
451 +    /**
452 +     * Adds all of the elements in the specified collection at the end
453 +     * of this deque, as if by calling {@link #addLast} on each one,
454 +     * in the order that they are returned by the collection's iterator.
455 +     *
456 +     * <p>When using a capacity-restricted deque, it is generally preferable
457 +     * to call {@link #offer(Object) offer} separately on each element.
458 +     *
459 +     * <p>An exception encountered while trying to add an element may result
460 +     * in only some of the elements having been successfully added when
461 +     * the associated exception is thrown.
462 +     *
463 +     * @param c the elements to be inserted into this deque
464 +     * @return {@code true} if this deque changed as a result of the call
465 +     * @throws IllegalStateException if not all the elements can be added at
466 +     *         this time due to insertion restrictions
467 +     * @throws ClassCastException if the class of an element of the specified
468 +     *         collection prevents it from being added to this deque
469 +     * @throws NullPointerException if the specified collection contains a
470 +     *         null element and this deque does not permit null elements,
471 +     *         or if the specified collection is null
472 +     * @throws IllegalArgumentException if some property of an element of the
473 +     *         specified collection prevents it from being added to this deque
474 +     */
475 +    boolean addAll(Collection<? extends E> c);
476  
477      // *** Stack methods ***
478  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines