Lines Matching refs:iterator

402      * {@link java.util.Collection#iterator()} as the source of elements, and
407 * the <em>fail-fast</em> properties of the collection's iterator, and
415 * @return A spliterator from an iterator
430 * the <em>fail-fast</em> properties of the iterator, and implements
434 * The behaviour of splitting and traversal is undefined if the iterator is
439 * @param iterator The iterator for the source
445 * @return A spliterator from an iterator
446 * @throws NullPointerException if the given iterator is {@code null}
448 public static <T> Spliterator<T> spliterator(Iterator<? extends T> iterator,
451 return new IteratorSpliterator<>(Objects.requireNonNull(iterator), size,
461 * the <em>fail-fast</em> properties of the iterator, and implements
465 * The behaviour of splitting and traversal is undefined if the iterator is
469 * @param iterator The iterator for the source
473 * @return A spliterator from an iterator
474 * @throws NullPointerException if the given iterator is {@code null}
476 public static <T> Spliterator<T> spliteratorUnknownSize(Iterator<? extends T> iterator,
478 return new IteratorSpliterator<>(Objects.requireNonNull(iterator), characteristics);
488 * the <em>fail-fast</em> properties of the iterator, and implements
492 * The behaviour of splitting and traversal is undefined if the iterator is
496 * @param iterator The iterator for the source
502 * @return A spliterator from an iterator
503 * @throws NullPointerException if the given iterator is {@code null}
505 public static Spliterator.OfInt spliterator(PrimitiveIterator.OfInt iterator,
508 return new IntIteratorSpliterator(Objects.requireNonNull(iterator),
519 * the <em>fail-fast</em> properties of the iterator, and implements
523 * The behaviour of splitting and traversal is undefined if the iterator is
526 * @param iterator The iterator for the source
530 * @return A spliterator from an iterator
531 * @throws NullPointerException if the given iterator is {@code null}
533 public static Spliterator.OfInt spliteratorUnknownSize(PrimitiveIterator.OfInt iterator,
535 return new IntIteratorSpliterator(Objects.requireNonNull(iterator), characteristics);
545 * the <em>fail-fast</em> properties of the iterator, and implements
549 * The behaviour of splitting and traversal is undefined if the iterator is
553 * @param iterator The iterator for the source
559 * @return A spliterator from an iterator
560 * @throws NullPointerException if the given iterator is {@code null}
562 public static Spliterator.OfLong spliterator(PrimitiveIterator.OfLong iterator,
565 return new LongIteratorSpliterator(Objects.requireNonNull(iterator),
576 * the <em>fail-fast</em> properties of the iterator, and implements
580 * The behaviour of splitting and traversal is undefined if the iterator is
583 * @param iterator The iterator for the source
587 * @return A spliterator from an iterator
588 * @throws NullPointerException if the given iterator is {@code null}
590 public static Spliterator.OfLong spliteratorUnknownSize(PrimitiveIterator.OfLong iterator,
592 return new LongIteratorSpliterator(Objects.requireNonNull(iterator), characteristics);
602 * the <em>fail-fast</em> properties of the iterator, and implements
606 * The behaviour of splitting and traversal is undefined if the iterator is
610 * @param iterator The iterator for the source
616 * @return A spliterator from an iterator
617 * @throws NullPointerException if the given iterator is {@code null}
619 public static Spliterator.OfDouble spliterator(PrimitiveIterator.OfDouble iterator,
622 return new DoubleIteratorSpliterator(Objects.requireNonNull(iterator),
633 * the <em>fail-fast</em> properties of the iterator, and implements
637 * The behaviour of splitting and traversal is undefined if the iterator is
640 * @param iterator The iterator for the source
644 * @return A spliterator from an iterator
645 * @throws NullPointerException if the given iterator is {@code null}
647 public static Spliterator.OfDouble spliteratorUnknownSize(PrimitiveIterator.OfDouble iterator,
649 return new DoubleIteratorSpliterator(Objects.requireNonNull(iterator), characteristics);
657 * <p>Traversal of elements should be accomplished through the iterator.
659 * after the iterator is returned.
663 * @return An iterator
666 public static<T> Iterator<T> iterator(Spliterator<? extends T> spliterator) {
703 * <p>Traversal of elements should be accomplished through the iterator.
705 * after the iterator is returned.
708 * @return An iterator
711 public static PrimitiveIterator.OfInt iterator(Spliterator.OfInt spliterator) {
748 * <p>Traversal of elements should be accomplished through the iterator.
750 * after the iterator is returned.
753 * @return An iterator
756 public static PrimitiveIterator.OfLong iterator(Spliterator.OfLong spliterator) {
793 * <p>Traversal of elements should be accomplished through the iterator.
795 * after the iterator is returned.
798 * @return An iterator
801 public static PrimitiveIterator.OfDouble iterator(Spliterator.OfDouble spliterator) {
1247 * parallelism, is to create a spliterator from an iterator
1249 * circumstances using an iterator may be easier or more convenient than
1250 * extending this class, such as when there is already an iterator
1370 * parallelism, is to create a spliterator from an iterator
1372 * Depending on the circumstances using an iterator may be easier or more
1374 * iterator available to use then there is no need to extend this class.
1480 * parallelism, is to create a spliterator from an iterator
1482 * Depending on the circumstances using an iterator may be easier or more
1484 * iterator available to use then there is no need to extend this class.
1590 * parallelism, is to create a spliterator from an iterator
1592 * Depending on the circumstances using an iterator may be easier or more
1594 * iterator available to use then there is no need to extend this class.
1702 * collection's {@link java.util.Collection#iterator()) for traversal,
1719 * Creates a spliterator using the given iterator
1723 * @param iterator the iterator for the source
1728 public IteratorSpliterator(Iterator<? extends T> iterator, long size, int characteristics) {
1730 this.it = iterator;
1738 * Creates a spliterator using the given iterator
1742 * @param iterator the iterator for the source
1746 public IteratorSpliterator(Iterator<? extends T> iterator, int characteristics) {
1748 this.it = iterator;
1771 i = it = collection.iterator();
1798 i = it = collection.iterator();
1808 it = collection.iterator();
1821 it = collection.iterator();
1852 * Creates a spliterator using the given iterator
1856 * @param iterator the iterator for the source
1861 public IntIteratorSpliterator(PrimitiveIterator.OfInt iterator, long size, int characteristics) {
1862 this.it = iterator;
1870 * Creates a spliterator using the given iterator for a
1874 * @param iterator the iterator for the source
1878 public IntIteratorSpliterator(PrimitiveIterator.OfInt iterator, int characteristics) {
1879 this.it = iterator;
1946 * Creates a spliterator using the given iterator
1950 * @param iterator the iterator for the source
1955 public LongIteratorSpliterator(PrimitiveIterator.OfLong iterator, long size, int characteristics) {
1956 this.it = iterator;
1964 * Creates a spliterator using the given iterator for a
1968 * @param iterator the iterator for the source
1972 public LongIteratorSpliterator(PrimitiveIterator.OfLong iterator, int characteristics) {
1973 this.it = iterator;
2040 * Creates a spliterator using the given iterator
2044 * @param iterator the iterator for the source
2049 public DoubleIteratorSpliterator(PrimitiveIterator.OfDouble iterator, long size, int characteristics) {
2050 this.it = iterator;
2058 * Creates a spliterator using the given iterator for a
2062 * @param iterator the iterator for the source
2066 public DoubleIteratorSpliterator(PrimitiveIterator.OfDouble iterator, int characteristics) {
2067 this.it = iterator;