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.44 by dl, Tue Jan 22 19:28:04 2013 UTC vs.
Revision 1.46 by jsr166, Mon Feb 11 07:42:43 2013 UTC

# Line 8 | Line 8 | package java.util;
8   import java.util.Spliterator;
9   import java.util.stream.Stream;
10   import java.util.stream.Streams;
11 < import java.util.function.Block;
11 > import java.util.function.Consumer;
12  
13   /**
14   * Resizable-array implementation of the {@link Deque} interface.  Array
# Line 697 | Line 697 | public class ArrayDeque<E> extends Abstr
697       * Returns {@code true} if this deque contained the specified element
698       * (or equivalently, if this deque changed as a result of the call).
699       *
700 <     * <p>This method is equivalent to {@link #removeFirstOccurrence}.
700 >     * <p>This method is equivalent to {@link #removeFirstOccurrence(Object)}.
701       *
702       * @param o element to be removed from this deque, if present
703       * @return {@code true} if this deque contained the specified element
# Line 881 | Line 881 | public class ArrayDeque<E> extends Abstr
881              return null;
882          }
883  
884 <        public void forEach(Block<? super E> block) {
884 >        public void forEach(Consumer<? super E> block) {
885              if (block == null)
886                  throw new NullPointerException();
887              Object[] a = deq.elements;
# Line 896 | Line 896 | public class ArrayDeque<E> extends Abstr
896              }
897          }
898  
899 <        public boolean tryAdvance(Block<? super E> block) {
899 >        public boolean tryAdvance(Consumer<? super E> block) {
900              if (block == null)
901                  throw new NullPointerException();
902              Object[] a = deq.elements;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines