jdk/src/share/classes/java/util/ArrayDeque.java
changeset 19435 9d7530ff42cb
parent 17168 b7d3500f2516
child 22078 bdec5d53e98c
equal deleted inserted replaced
19434:83132c40a585 19435:9d7530ff42cb
   886         // Read in all elements in the proper order.
   886         // Read in all elements in the proper order.
   887         for (int i = 0; i < size; i++)
   887         for (int i = 0; i < size; i++)
   888             elements[i] = s.readObject();
   888             elements[i] = s.readObject();
   889     }
   889     }
   890 
   890 
       
   891     /**
       
   892      * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em>
       
   893      * and <em>fail-fast</em> {@link Spliterator} over the elements in this
       
   894      * deque.
       
   895      *
       
   896      * <p>The {@code Spliterator} reports {@link Spliterator#SIZED},
       
   897      * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and
       
   898      * {@link Spliterator#NONNULL}.  Overriding implementations should document
       
   899      * the reporting of additional characteristic values.
       
   900      *
       
   901      * @return a {@code Spliterator} over the elements in this deque
       
   902      * @since 1.8
       
   903      */
   891     public Spliterator<E> spliterator() {
   904     public Spliterator<E> spliterator() {
   892         return new DeqSpliterator<E>(this, -1, -1);
   905         return new DeqSpliterator<E>(this, -1, -1);
   893     }
   906     }
   894 
   907 
   895     static final class DeqSpliterator<E> implements Spliterator<E> {
   908     static final class DeqSpliterator<E> implements Spliterator<E> {