jdk/src/share/classes/java/util/LinkedList.java
changeset 19435 9d7530ff42cb
parent 18788 1bfd5f623662
child 22078 bdec5d53e98c
equal deleted inserted replaced
19434:83132c40a585 19435:9d7530ff42cb
  1147         // Read in all elements in the proper order.
  1147         // Read in all elements in the proper order.
  1148         for (int i = 0; i < size; i++)
  1148         for (int i = 0; i < size; i++)
  1149             linkLast((E)s.readObject());
  1149             linkLast((E)s.readObject());
  1150     }
  1150     }
  1151 
  1151 
       
  1152     /**
       
  1153      * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em>
       
  1154      * and <em>fail-fast</em> {@link Spliterator} over the elements in this
       
  1155      * list.
       
  1156      *
       
  1157      * <p>The {@code Spliterator} reports {@link Spliterator#SIZED} and
       
  1158      * {@link Spliterator#ORDERED}.  Overriding implementations should document
       
  1159      * the reporting of additional characteristic values.
       
  1160      *
       
  1161      * @implNote
       
  1162      * The {@code Spliterator} additionally reports {@link Spliterator#SUBSIZED}
       
  1163      * and implements {@code trySplit} to permit limited parallelism..
       
  1164      *
       
  1165      * @return a {@code Spliterator} over the elements in this list
       
  1166      * @since 1.8
       
  1167      */
       
  1168     @Override
  1152     public Spliterator<E> spliterator() {
  1169     public Spliterator<E> spliterator() {
  1153         return new LLSpliterator<E>(this, -1, 0);
  1170         return new LLSpliterator<E>(this, -1, 0);
  1154     }
  1171     }
  1155 
  1172 
  1156     /** A customized variant of Spliterators.IteratorSpliterator */
  1173     /** A customized variant of Spliterators.IteratorSpliterator */