Scala Standard Library 2.13.1 - scala.collection.Iterator (original) (raw)
trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Iterator[A]]
Ordering
- Alphabetic
- By Inheritance
Inherited
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
Implicitly
by iterableOnceExtensionMethods
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##(): Int
- def +(other: String): String
- final def ++[B >: A](xs: => IterableOnce[B]): Iterator[B]
- def ->[B](y: B): (Iterator[A], B)
- final def ==(arg0: Any): Boolean
- final def addString(b: mutable.StringBuilder): mutable.StringBuilder
- final def addString(b: mutable.StringBuilder, sep: String): mutable.StringBuilder
- def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): mutable.StringBuilder
- final def asInstanceOf[T0]: T0
- def buffered: BufferedIterator[A]
- def clone(): AnyRef
- def collect[B](pf: PartialFunction[A, B]): Iterator[B]
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- def concat[B >: A](xs: => IterableOnce[B]): Iterator[B]
- def contains(elem: Any): Boolean
- def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
- def copyToArray[B >: A](xs: Array[B], start: Int): Int
- def copyToArray[B >: A](xs: Array[B]): Int
- def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- def count(p: (A) => Boolean): Int
- def distinct: Iterator[A]
- def distinctBy[B](f: (A) => B): Iterator[A]
- def drop(n: Int): Iterator[A]
- def dropWhile(p: (A) => Boolean): Iterator[A]
- def duplicate: (Iterator[A], Iterator[A])
- def ensuring(cond: (Iterator[A]) => Boolean, msg: => Any): Iterator[A]
- def ensuring(cond: (Iterator[A]) => Boolean): Iterator[A]
- def ensuring(cond: Boolean, msg: => Any): Iterator[A]
- def ensuring(cond: Boolean): Iterator[A]
- final def eq(arg0: AnyRef): Boolean
- def equals(arg0: AnyRef): Boolean
- def exists(p: (A) => Boolean): Boolean
- def filter(p: (A) => Boolean): Iterator[A]
- def filterNot(p: (A) => Boolean): Iterator[A]
- def finalize(): Unit
- def find(p: (A) => Boolean): Option[A]
- def flatMap[B](f: (A) => IterableOnce[B]): Iterator[B]
- def flatten[B](implicit ev: (A) => IterableOnce[B]): Iterator[B]
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, A) => B): B
- def foldRight[B](z: B)(op: (A, B) => B): B
- def forall(p: (A) => Boolean): Boolean
- def foreach[U](f: (A) => U): Unit
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- def grouped[B >: A](size: Int): GroupedIterator[B]
- def hashCode(): Int
- def indexOf[B >: A](elem: B, from: Int): Int
- def indexOf[B >: A](elem: B): Int
- def indexWhere(p: (A) => Boolean, from: Int = 0): Int
- def isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- def isTraversableAgain: Boolean
- final def iterator: Iterator[A]
- def knownSize: Int
- final def length: Int
- def map[B](f: (A) => B): Iterator[B]
- def max[B >: A](implicit ord: math.Ordering[B]): A
- def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- def maxByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
- def maxOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
- def min[B >: A](implicit ord: math.Ordering[B]): A
- def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- def minByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
- def minOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
- final def mkString: String
- final def mkString(sep: String): String
- final def mkString(start: String, sep: String, end: String): String
- final def ne(arg0: AnyRef): Boolean
- def nextOption(): Option[A]
- def nonEmpty: Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def padTo[B >: A](len: Int, elem: B): Iterator[B]
- def partition(p: (A) => Boolean): (Iterator[A], Iterator[A])
- def patch[B >: A](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- def product[B >: A](implicit num: math.Numeric[B]): B
- def reduce[B >: A](op: (B, B) => B): B
- def reduceLeft[B >: A](op: (B, A) => B): B
- def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- def reduceOption[B >: A](op: (B, B) => B): Option[B]
- def reduceRight[B >: A](op: (A, B) => B): B
- def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- def reversed: Iterable[A]
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- def scanLeft[B](z: B)(op: (B, A) => B): Iterator[B]
- def size: Int
- def slice(from: Int, until: Int): Iterator[A]
- def sliceIterator(from: Int, until: Int): Iterator[A]
- def sliding[B >: A](size: Int, step: Int = 1): GroupedIterator[B]
- def span(p: (A) => Boolean): (Iterator[A], Iterator[A])
- def splitAt(n: Int): (Iterator[A], Iterator[A])
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
- def sum[B >: A](implicit num: math.Numeric[B]): B
- final def synchronized[T0](arg0: => T0): T0
- def take(n: Int): Iterator[A]
- def takeWhile(p: (A) => Boolean): Iterator[A]
- def tapEach[U](f: (A) => U): Iterator[A]
- def to[C1](factory: Factory[A, C1]): C1
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- final def toBuffer[B >: A]: Buffer[B]
- def toIndexedSeq: immutable.IndexedSeq[A]
- def toList: immutable.List[A]
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): immutable.Map[K, V]
- def toSeq: immutable.Seq[A]
- def toSet[B >: A]: immutable.Set[B]
- def toString(): String
- def toVector: immutable.Vector[A]
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- def withFilter(p: (A) => Boolean): Iterator[A]
- def zip[B](that: IterableOnce[B]): Iterator[(A, B)]
- def zipAll[A1 >: A, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
- def zipWithIndex: Iterator[(A, Int)]
Deprecated Value Members
- def /:[B](z: B)(op: (B, A) => B): B
- final def /:[B](z: B)(op: (B, A) => B): B
- def :\[B](z: B)(op: (A, B) => B): B
- final def :\[B](z: B)(op: (A, B) => B): B
- def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
- def collectFirst[B](f: PartialFunction[A, B]): Option[B]
- def copyToBuffer(dest: Buffer[A]): Unit
- final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
- def count(f: (A) => Boolean): Int
- def exists(f: (A) => Boolean): Boolean
- def filter(f: (A) => Boolean): Iterator[A]
- def find(p: (A) => Boolean): Option[A]
- def flatMap[B](f: (A) => IterableOnce[B]): IterableOnce[B]
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, A) => B): B
- def foldRight[B](z: B)(op: (A, B) => B): B
- def forall(f: (A) => Boolean): Boolean
- def foreach[U](f: (A) => U): Unit
- final def hasDefiniteSize: Boolean
- def isEmpty: Boolean
- def map[B](f: (A) => B): IterableOnce[B]
- def max(implicit ord: math.Ordering[A]): A
- def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- def min(implicit ord: math.Ordering[A]): A
- def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
- def mkString: String
- def mkString(sep: String): String
- def mkString(start: String, sep: String, end: String): String
- def nonEmpty: Boolean
- def product(implicit num: math.Numeric[A]): A
- def reduce(f: (A, A) => A): A
- def reduceLeft(f: (A, A) => A): A
- def reduceLeftOption(f: (A, A) => A): Option[A]
- def reduceOption(f: (A, A) => A): Option[A]
- def reduceRight(f: (A, A) => A): A
- def reduceRightOption(f: (A, A) => A): Option[A]
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- def scanRight[B](z: B)(op: (A, B) => B): Iterator[B]
- def seq: Iterator.this.type
- def size: Int
- def sum(implicit num: math.Numeric[A]): A
- def to[C1](factory: Factory[A, C1]): C1
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- def toBuffer[B >: A]: Buffer[B]
- def toIndexedSeq: IndexedSeq[A]
- final def toIterable: Iterable[A]
- def toIterator: Iterator[A]
- final def toIterator: Iterator[A]
- def toList: immutable.List[A]
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): immutable.Map[K, V]
- def toSeq: immutable.Seq[A]
- def toSet[B >: A]: immutable.Set[B]
- def toStream: immutable.Stream[A]
- final def toStream: immutable.Stream[A]
- final def toTraversable: Traversable[A]
- def toVector: immutable.Vector[A]
- def withFilter(f: (A) => Boolean): Iterator[A]
- def →[B](y: B): (Iterator[A], B)