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

Comparing jsr166/src/main/java/util/ArrayDeque.java (file contents):
Revision 1.53 by dl, Wed Mar 13 12:38:56 2013 UTC vs.
Revision 1.57 by jsr166, Thu Jul 18 18:21:22 2013 UTC

# Line 7 | Line 7 | package java.util;
7   import java.io.Serializable;
8   import java.util.function.Consumer;
9   import java.util.stream.Stream;
10 import java.util.stream.Streams;
10  
11   /**
12   * Resizable-array implementation of the {@link Deque} interface.  Array
# Line 811 | Line 810 | public class ArrayDeque<E> extends Abstr
810      /**
811       * Saves this deque to a stream (that is, serializes it).
812       *
813 +     * @param s the stream
814 +     * @throws java.io.IOException if an I/O error occurs
815       * @serialData The current size ({@code int}) of the deque,
816       * followed by all of its elements (each an object reference) in
817       * first-to-last order.
# Line 830 | Line 831 | public class ArrayDeque<E> extends Abstr
831  
832      /**
833       * Reconstitutes this deque from a stream (that is, deserializes it).
834 +     * @param s the stream
835 +     * @throws ClassNotFoundException if the class of a serialized object
836 +     *         could not be found
837 +     * @throws java.io.IOException if an I/O error occurs
838       */
839      private void readObject(java.io.ObjectInputStream s)
840              throws java.io.IOException, ClassNotFoundException {
# Line 882 | Line 887 | public class ArrayDeque<E> extends Abstr
887              return null;
888          }
889  
890 <        public void forEach(Consumer<? super E> consumer) {
890 >        public void forEachRemaining(Consumer<? super E> consumer) {
891              if (consumer == null)
892                  throw new NullPointerException();
893              Object[] a = deq.elements;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines