c

ap.util

PriorityQueueWithIterators

class PriorityQueueWithIterators[A] extends PeekIterator[A]

Priority queue that can handle both single elements and pre-sorted sequences (iterators) of elements

Linear Supertypes
PeekIterator[A], Iterator[A], IterableOnceOps[A, Iterator, Iterator[A]], IterableOnce[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PriorityQueueWithIterators
  2. PeekIterator
  3. Iterator
  4. IterableOnceOps
  5. IterableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PriorityQueueWithIterators()(implicit ord: Ordering[A])

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: A](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  4. def ++=(it: Iterator[A]): Unit

    Adds all elements provided by an iterator into the priority queue.

  5. def ++=(it: Iterable[A]): Unit

    Adds all elements provided by an iterable into the priority queue.

  6. 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!

  7. def +=(elem: A): Unit

    Inserts a single element into the priority queue.

  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  10. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  11. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def buffered: BufferedIterator[A]
    Definition Classes
    Iterator
  14. 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.

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  16. def collect[B](pf: PartialFunction[A, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  17. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
    IterableOnceOps
  18. def concat[B >: A](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  19. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  20. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  21. def copyToArray[B >: A](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  22. def copyToArray[B >: A](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  23. def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  24. def count(p: (A) => Boolean): Int
    Definition Classes
    IterableOnceOps
  25. 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
  26. def distinct: Iterator[A]
    Definition Classes
    Iterator
  27. def distinctBy[B](f: (A) => B): Iterator[A]
    Definition Classes
    Iterator
  28. def drop(n: Int): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  29. def dropAll: Unit
    Definition Classes
    PeekIterator
  30. def dropWhile(p: (A) => Boolean): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  31. def duplicate: (Iterator[A], Iterator[A])
    Definition Classes
    Iterator
  32. 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!

  33. def enqueue(elems: A*): Unit

    Adds all elements to the queue.

  34. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  36. def exists(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  37. def filter(p: (A) => Boolean): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  38. def filterNot(p: (A) => Boolean): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  39. def find(p: (A) => Boolean): Option[A]
    Definition Classes
    IterableOnceOps
  40. def flatMap[B](f: (A) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  41. def flatten[B](implicit ev: (A) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  42. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  43. def foldLeft[B](z: B)(op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  44. def foldRight[B](z: B)(op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  45. def forall(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  46. def foreach[U](f: (A) => U): Unit
    Definition Classes
    IterableOnceOps
  47. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  48. def grouped[B >: A](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  49. def hasNext: Boolean
    Definition Classes
    PriorityQueueWithIterators → Iterator
  50. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  51. def indexOf[B >: A](elem: B, from: Int): Int
    Definition Classes
    Iterator
  52. def indexOf[B >: A](elem: B): Int
    Definition Classes
    Iterator
  53. def indexWhere(p: (A) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  54. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  55. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  56. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  57. final def iterator: Iterator[A]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  58. def knownSize: Int
    Definition Classes
    IterableOnce
  59. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  60. def map[B](f: (A) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  61. 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.

  62. def max[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  63. def maxBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  64. def maxByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  65. def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  66. def min[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  67. def minBy[B](f: (A) => B)(implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  68. def minByOption[B](f: (A) => B)(implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  69. def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  70. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  71. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  72. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  73. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  74. def next(): A
    Definition Classes
    PriorityQueueWithIterators → Iterator
  75. def nextOption(): Option[A]
    Definition Classes
    Iterator
  76. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  77. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  78. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  79. def padTo[B >: A](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  80. def partition(p: (A) => Boolean): (Iterator[A], Iterator[A])
    Definition Classes
    Iterator
  81. def patch[B >: A](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  82. def peekNext: A
  83. def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  84. def reduce[B >: A](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  85. def reduceLeft[B >: A](op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  86. def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
    Definition Classes
    IterableOnceOps
  87. def reduceOption[B >: A](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  88. def reduceRight[B >: A](op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  89. def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  90. def reversed: Iterable[A]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  91. def sameElements[B >: A](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  92. def scanLeft[B](z: B)(op: (B, A) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  93. def size: Int
    Definition Classes
    IterableOnceOps
  94. def slice(from: Int, until: Int): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  95. def sliceIterator(from: Int, until: Int): Iterator[A]
    Attributes
    protected
    Definition Classes
    Iterator
  96. def sliding[B >: A](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  97. def span(p: (A) => Boolean): (Iterator[A], Iterator[A])
    Definition Classes
    Iterator → IterableOnceOps
  98. def splitAt(n: Int): (Iterator[A], Iterator[A])
    Definition Classes
    IterableOnceOps
  99. def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
    Definition Classes
    IterableOnce
  100. def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  101. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  102. def take(n: Int): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  103. def takeWhile(p: (A) => Boolean): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  104. def tapEach[U](f: (A) => U): Iterator[A]
    Definition Classes
    Iterator → IterableOnceOps
  105. def to[C1](factory: Factory[A, C1]): C1
    Definition Classes
    IterableOnceOps
  106. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  107. final def toBuffer[B >: A]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  108. def toIndexedSeq: IndexedSeq[A]
    Definition Classes
    IterableOnceOps
  109. def toList: List[A]
    Definition Classes
    IterableOnceOps
  110. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  111. def toSeq: Seq[A]
    Definition Classes
    IterableOnceOps
  112. def toSet[B >: A]: Set[B]
    Definition Classes
    IterableOnceOps
  113. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  114. def toVector: Vector[A]
    Definition Classes
    IterableOnceOps
  115. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  116. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  117. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  118. def withFilter(p: (A) => Boolean): Iterator[A]
    Definition Classes
    Iterator
  119. def zip[B](that: IterableOnce[B]): Iterator[(A, B)]
    Definition Classes
    Iterator
  120. def zipAll[A1 >: A, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  121. def zipWithIndex: Iterator[(A, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. 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 /:

  2. 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 :\

  3. 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, use ParIterableLike#aggregate.

  4. 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

  5. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  6. 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

  7. 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.

  8. def seq: PriorityQueueWithIterators.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  9. final def toIterator: Iterator[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  10. final def toStream: Stream[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from PeekIterator[A]

Inherited from Iterator[A]

Inherited from IterableOnceOps[A, Iterator, Iterator[A]]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped