jdk/src/share/classes/java/util/Vector.java
changeset 19435 9d7530ff42cb
parent 19208 1e3d351eba80
child 22078 bdec5d53e98c
equal deleted inserted replaced
19434:83132c40a585 19435:9d7530ff42cb
  1321             throw new ConcurrentModificationException();
  1321             throw new ConcurrentModificationException();
  1322         }
  1322         }
  1323         modCount++;
  1323         modCount++;
  1324     }
  1324     }
  1325 
  1325 
       
  1326     /**
       
  1327      * Creates a <em><a href="Spliterator.html#binding">late-binding</a></em>
       
  1328      * and <em>fail-fast</em> {@link Spliterator} over the elements in this
       
  1329      * list.
       
  1330      *
       
  1331      * <p>The {@code Spliterator} reports {@link Spliterator#SIZED},
       
  1332      * {@link Spliterator#SUBSIZED}, and {@link Spliterator#ORDERED}.
       
  1333      * Overriding implementations should document the reporting of additional
       
  1334      * characteristic values.
       
  1335      *
       
  1336      * @return a {@code Spliterator} over the elements in this list
       
  1337      * @since 1.8
       
  1338      */
  1326     @Override
  1339     @Override
  1327     public Spliterator<E> spliterator() {
  1340     public Spliterator<E> spliterator() {
  1328         return new VectorSpliterator<>(this, null, 0, -1, 0);
  1341         return new VectorSpliterator<>(this, null, 0, -1, 0);
  1329     }
  1342     }
  1330 
  1343