abstract class LongIterator extends AbstractIterator[Long]
Iterator over a collection of longs; basically all methods are overridden to avoid (un)boxing operations.
- Self Type
- LongIterator
- Source
- LongIterator.scala
- Alphabetic
- By Inheritance
- LongIterator
- AbstractIterator
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LongIterator()
Type Members
- class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
- Definition Classes
- Iterator
Abstract Value Members
- abstract def hasNext: Boolean
- Definition Classes
- Iterator
- abstract def next(): Long
Returns the next value if
hasNext
has returnedtrue
; if hasNext has returnedfalse
andnext
is called, the result is undefined.Returns the next value if
hasNext
has returnedtrue
; if hasNext has returnedfalse
andnext
is called, the result is undefined. The method may throw anUnsupportedOperationException
or just return the last value; however, the behavior is undefined and subject to change without notice!- Definition Classes
- LongIterator → Iterator
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(other: LongIterator): LongIterator
- final def ++[B >: Long](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buffered: BufferedIterator[Long]
- Definition Classes
- Iterator
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def collect[B](pf: PartialFunction[Long, B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[Long, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: Long](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- def contains(i: Long): Boolean
- def contains(elem: Any): Boolean
- Definition Classes
- Iterator
- def copyToArray[B >: Long](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: Long](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: Long](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (Long, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (Long) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def distinct: Iterator[Long]
- Definition Classes
- Iterator
- def distinctBy[B](f: (Long) => B): Iterator[Long]
- Definition Classes
- Iterator
- def drop(n: Int): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def dropWhile(p: (Long) => Boolean): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def duplicate: (Iterator[Long], Iterator[Long])
- Definition Classes
- Iterator
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (Long) => Boolean): Boolean
- Definition Classes
- LongIterator → IterableOnceOps
- def filter(p: (Long) => Boolean): LongIterator
- Definition Classes
- LongIterator → Iterator → IterableOnceOps
- def filterNot(p: (Long) => Boolean): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def find(p: (Long) => Boolean): Option[Long]
- Definition Classes
- IterableOnceOps
- def flatMap(f: (Long) => LongIterator): LongIterator
- def flatMap[B](f: (Long) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def flatten[B](implicit ev: (Long) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def fold[A1 >: Long](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](start: B)(f: (B, Long) => B): B
- Definition Classes
- LongIterator → IterableOnceOps
- def foldRight[B](z: B)(op: (Long, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (Long) => Boolean): Boolean
- Definition Classes
- LongIterator → IterableOnceOps
- def foreach[U](f: (Long) => U): Unit
- Definition Classes
- LongIterator → IterableOnceOps
- def foreachWhile(p: LongPredicate)(f: LongConsumer): Unit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def grouped[B >: Long](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def indexOf[B >: Long](elem: B, from: Int): Int
- Definition Classes
- Iterator
- def indexOf[B >: Long](elem: B): Int
- Definition Classes
- Iterator
- def indexWhere(p: (Long) => Boolean, from: Int): Int
- Definition Classes
- Iterator
- def isEmpty: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOnceOps
- final def iterator: Iterator[Long]
- Definition Classes
- Iterator → IterableOnce
- Annotations
- @inline()
- def knownSize: Int
- Definition Classes
- IterableOnce
- final def length: Int
- Definition Classes
- Iterator
- Annotations
- @inline()
- def map[X](m: (Long) => X): Iterator[X]
- Definition Classes
- LongIterator → Iterator → IterableOnceOps
- def map(f: (Long) => Int): IntIterator
- def map(f: (Long) => Long): LongIterator
- def max[B >: Long](implicit ord: Ordering[B]): Long
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (Long) => B)(implicit cmp: Ordering[B]): Long
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (Long) => B)(implicit cmp: Ordering[B]): Option[Long]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: Long](implicit ord: Ordering[B]): Option[Long]
- Definition Classes
- IterableOnceOps
- def min[B >: Long](implicit ord: Ordering[B]): Long
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (Long) => B)(implicit cmp: Ordering[B]): Long
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (Long) => B)(implicit cmp: Ordering[B]): Option[Long]
- Definition Classes
- IterableOnceOps
- def minOption[B >: Long](implicit ord: Ordering[B]): Option[Long]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextOption(): Option[Long]
- Definition Classes
- Iterator
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def padTo[B >: Long](len: Int, elem: B): Iterator[B]
- Definition Classes
- Iterator
- def partition(p: (Long) => Boolean): (Iterator[Long], Iterator[Long])
- Definition Classes
- Iterator
- def patch[B >: Long](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
- def product[B >: Long](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: Long](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: Long](op: (B, Long) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: Long](op: (B, Long) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: Long](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: Long](op: (Long, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: Long](op: (Long, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[Long]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sameElements[B >: Long](that: IterableOnce[B]): Boolean
- Definition Classes
- Iterator
- def sameValues(that: LongIterator): Boolean
Compares the returned values to check if the iteration order is the same.
Compares the returned values to check if the iteration order is the same.
Both iterators may be consumed up to an arbitrary point.
- def scanLeft[B](z: B)(op: (B, Long) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def size: Int
- Definition Classes
- IterableOnceOps
- def slice(from: Int, until: Int): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def sliceIterator(from: Int, until: Int): Iterator[Long]
- Attributes
- protected
- Definition Classes
- Iterator
- def sliding[B >: Long](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def span(p: (Long) => Boolean): (Iterator[Long], Iterator[Long])
- Definition Classes
- Iterator → IterableOnceOps
- def splitAt(n: Int): (Iterator[Long], Iterator[Long])
- Definition Classes
- IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[Long, S]): S
- Definition Classes
- IterableOnce
- def sum[B >: Long](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): LongIterator
- Definition Classes
- LongIterator → Iterator → IterableOnceOps
- def takeWhile(p: (Long) => Boolean): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def tapEach[U](f: (Long) => U): Iterator[Long]
- Definition Classes
- Iterator → IterableOnceOps
- def to[C1](factory: Factory[Long, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray: Array[Long]
- def toArray[B >: Long](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: Long]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[Long]
- Definition Classes
- IterableOnceOps
- def toList: List[Long]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[Long, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[Long]
- Definition Classes
- IterableOnceOps
- def toSet: LongSet
- def toSet[B >: Long]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Iterator → AnyRef → Any
- def toVector: Vector[Long]
- Definition Classes
- IterableOnceOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (Long) => Boolean): LongIterator
- Definition Classes
- LongIterator → Iterator
- def zip[B](that: IterableOnce[B]): Iterator[(Long, B)]
- Definition Classes
- Iterator
- def zipAll[A1 >: Long, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
- Definition Classes
- Iterator
- def zipWithIndex: Iterator[(Long, Int)]
- Definition Classes
- Iterator → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, Long) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (Long, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, Long) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- final def copyToBuffer[B >: Long](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- final def hasDefiniteSize: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty
- def scanRight[B](z: B)(op: (Long, B) => B): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Call scanRight on an Iterable instead.
- def seq: LongIterator.this.type
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterator.seq always returns the iterator itself
- final def toIterator: Iterator[Long]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[Long]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream