class PriorityQueueWithIterators[A] extends PeekIterator[A]
Priority queue that can handle both single elements and pre-sorted sequences (iterators) of elements
- Alphabetic
- By Inheritance
- PriorityQueueWithIterators
- PeekIterator
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PriorityQueueWithIterators()(implicit ord: Ordering[A])
Type Members
- class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
- Definition Classes
- Iterator
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: A](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @inline()
- def ++=(it: Iterator[A]): Unit
Adds all elements provided by an iterator into the priority queue.
- def ++=(it: Iterable[A]): Unit
Adds all elements provided by an iterable into the priority queue.
- def +=(it: Iterator[A]): Unit
Inserts a sequence as a single element into the priority queue.
Inserts a sequence as a single element into the priority queue. The given iterator has to produce elements in descending order!
- def +=(elem: A): Unit
Inserts a single element into the priority queue.
- 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[A]
- Definition Classes
- Iterator
- def clear(): Unit
Removes all elements from the queue.
Removes all elements from the queue. After this operation is completed, the queue will be empty.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def collect[B](pf: PartialFunction[A, B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: A](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- def contains(elem: Any): Boolean
- Definition Classes
- Iterator
- def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: A](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: A](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (A) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def dequeue: A
Returns the element with the highest priority in the queue, and removes this element from the queue.
Returns the element with the highest priority in the queue, and removes this element from the queue.
- returns
the element with the highest priority.
- Exceptions thrown
- def distinct: Iterator[A]
- Definition Classes
- Iterator
- def distinctBy[B](f: (A) => B): Iterator[A]
- Definition Classes
- Iterator
- def drop(n: Int): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def dropAll: Unit
- Definition Classes
- PeekIterator
- def dropWhile(p: (A) => Boolean): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def duplicate: (Iterator[A], Iterator[A])
- Definition Classes
- Iterator
- def enqueue(it: Iterator[A]): Unit
Adds all elements to the queue.
Adds all elements to the queue. The given iterators have to produce elements in descending order!
- def enqueue(elems: A*): Unit
Adds all elements to the queue.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(p: (A) => Boolean): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def filterNot(p: (A) => Boolean): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def find(p: (A) => Boolean): Option[A]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (A) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def flatten[B](implicit ev: (A) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (A) => U): Unit
- Definition Classes
- IterableOnceOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def grouped[B >: A](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def hasNext: Boolean
- Definition Classes
- PriorityQueueWithIterators → Iterator
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def indexOf[B >: A](elem: B, from: Int): Int
- Definition Classes
- Iterator
- def indexOf[B >: A](elem: B): Int
- Definition Classes
- Iterator
- def indexWhere(p: (A) => 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[A]
- Definition Classes
- Iterator → IterableOnce
- Annotations
- @inline()
- def knownSize: Int
- Definition Classes
- IterableOnce
- final def length: Int
- Definition Classes
- Iterator
- Annotations
- @inline()
- def map[B](f: (A) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def max: A
Returns the element with the highest priority in the queue, or throws an error if there is no element contained in the queue.
Returns the element with the highest priority in the queue, or throws an error if there is no element contained in the queue.
- returns
the element with the highest priority.
- def max[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def min[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
- 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 next(): A
- Definition Classes
- PriorityQueueWithIterators → Iterator
- def nextOption(): Option[A]
- Definition Classes
- Iterator
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def padTo[B >: A](len: Int, elem: B): Iterator[B]
- Definition Classes
- Iterator
- def partition(p: (A) => Boolean): (Iterator[A], Iterator[A])
- Definition Classes
- Iterator
- def patch[B >: A](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
- def peekNext: A
- Definition Classes
- PriorityQueueWithIterators → PeekIterator
- def product[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: A](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: A](op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: A](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: A](op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[A]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- Definition Classes
- Iterator
- def scanLeft[B](z: B)(op: (B, A) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def size: Int
- Definition Classes
- IterableOnceOps
- def slice(from: Int, until: Int): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def sliceIterator(from: Int, until: Int): Iterator[A]
- Attributes
- protected
- Definition Classes
- Iterator
- def sliding[B >: A](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def span(p: (A) => Boolean): (Iterator[A], Iterator[A])
- Definition Classes
- Iterator → IterableOnceOps
- def splitAt(n: Int): (Iterator[A], Iterator[A])
- Definition Classes
- IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
- Definition Classes
- IterableOnce
- def sum[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def takeWhile(p: (A) => Boolean): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def tapEach[U](f: (A) => U): Iterator[A]
- Definition Classes
- Iterator → IterableOnceOps
- def to[C1](factory: Factory[A, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: A]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[A]
- Definition Classes
- IterableOnceOps
- def toList: List[A]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[A]
- Definition Classes
- IterableOnceOps
- def toSet[B >: A]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Iterator → AnyRef → Any
- def toVector: Vector[A]
- 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]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (A) => Boolean): Iterator[A]
- Definition Classes
- Iterator
- def zip[B](that: IterableOnce[B]): Iterator[(A, B)]
- Definition Classes
- Iterator
- def zipAll[A1 >: A, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
- Definition Classes
- Iterator
- def zipWithIndex: Iterator[(A, Int)]
- Definition Classes
- Iterator → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (A, 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, A) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) For sequential collections, prefer
foldLeft(z)(seqop)
. For parallel collections, useParIterableLike#aggregate
.
- final def copyToBuffer[B >: A](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
(Since version 9)
- 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: (A, B) => B): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Call scanRight on an Iterable instead.
- def seq: PriorityQueueWithIterators.this.type
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterator.seq always returns the iterator itself
- final def toIterator: Iterator[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream