jdk/src/share/classes/java/util/stream/SpinedBuffer.java
changeset 18155 889970e5b728
parent 17182 b786c0de868c
child 18171 2725a30c1a02
equal deleted inserted replaced
18154:5ede18269905 18155:889970e5b728
   225         spineIndex = 0;
   225         spineIndex = 0;
   226     }
   226     }
   227 
   227 
   228     @Override
   228     @Override
   229     public Iterator<E> iterator() {
   229     public Iterator<E> iterator() {
   230         return Spliterators.iteratorFromSpliterator(spliterator());
   230         return Spliterators.iterator(spliterator());
   231     }
   231     }
   232 
   232 
   233     @Override
   233     @Override
   234     public void forEach(Consumer<? super E> consumer) {
   234     public void forEach(Consumer<? super E> consumer) {
   235         // completed chunks, if any
   235         // completed chunks, if any
   710             return asPrimitiveArray();
   710             return asPrimitiveArray();
   711         }
   711         }
   712 
   712 
   713         @Override
   713         @Override
   714         public PrimitiveIterator.OfInt iterator() {
   714         public PrimitiveIterator.OfInt iterator() {
   715             return Spliterators.iteratorFromSpliterator(spliterator());
   715             return Spliterators.iterator(spliterator());
   716         }
   716         }
   717 
   717 
   718         public Spliterator.OfInt spliterator() {
   718         public Spliterator.OfInt spliterator() {
   719             class Splitr extends BaseSpliterator<Spliterator.OfInt>
   719             class Splitr extends BaseSpliterator<Spliterator.OfInt>
   720                     implements Spliterator.OfInt {
   720                     implements Spliterator.OfInt {
   813             return asPrimitiveArray();
   813             return asPrimitiveArray();
   814         }
   814         }
   815 
   815 
   816         @Override
   816         @Override
   817         public PrimitiveIterator.OfLong iterator() {
   817         public PrimitiveIterator.OfLong iterator() {
   818             return Spliterators.iteratorFromSpliterator(spliterator());
   818             return Spliterators.iterator(spliterator());
   819         }
   819         }
   820 
   820 
   821 
   821 
   822         public Spliterator.OfLong spliterator() {
   822         public Spliterator.OfLong spliterator() {
   823             class Splitr extends BaseSpliterator<Spliterator.OfLong>
   823             class Splitr extends BaseSpliterator<Spliterator.OfLong>
   917             return asPrimitiveArray();
   917             return asPrimitiveArray();
   918         }
   918         }
   919 
   919 
   920         @Override
   920         @Override
   921         public PrimitiveIterator.OfDouble iterator() {
   921         public PrimitiveIterator.OfDouble iterator() {
   922             return Spliterators.iteratorFromSpliterator(spliterator());
   922             return Spliterators.iterator(spliterator());
   923         }
   923         }
   924 
   924 
   925         public Spliterator.OfDouble spliterator() {
   925         public Spliterator.OfDouble spliterator() {
   926             class Splitr extends BaseSpliterator<Spliterator.OfDouble>
   926             class Splitr extends BaseSpliterator<Spliterator.OfDouble>
   927                     implements Spliterator.OfDouble {
   927                     implements Spliterator.OfDouble {