Packages

final class TPriorityQueue[A] extends AnyVal

A TPriorityQueue contains values of type A that an Ordering is defined on. Unlike a TQueue, take returns the highest priority value (the value that is first in the specified ordering) as opposed to the first value offered to the queue. The ordering that elements with the same priority will be taken from the queue is not guaranteed.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TPriorityQueue
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. def isEmpty: USTM[Boolean]

    Checks whether the queue is empty.

  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def nonEmpty: USTM[Boolean]

    Checks whether the queue is not empty..

  9. def offer(a: A): USTM[Unit]

    Offers the specified value to the queue.

  10. def offerAll(values: Iterable[A]): USTM[Unit]

    Offers all of the elements in the specified collection to the queue.

  11. def peek: USTM[A]

    Peeks at the first value in the queue without removing it, retrying until a value is in the queue.

  12. def peekOption: USTM[Option[A]]

    Peeks at the first value in the queue without removing it, returning None if there is not a value in the queue.

  13. def removeIf(f: (A) => Boolean): USTM[Unit]

    Removes all elements from the queue matching the specified predicate.

  14. def retainIf(f: (A) => Boolean): USTM[Unit]

    Retains only elements from the queue matching the specified predicate.

  15. def size: USTM[Int]

    Returns the size of the queue.

  16. def take: USTM[A]

    Takes a value from the queue, retrying until a value is in the queue.

  17. def takeAll: USTM[Chunk[A]]

    Takes all values from the queue.

  18. def takeOption: USTM[Option[A]]

    Takes a value from the queue, returning None if there is not a value in the queue.

  19. def takeUpTo(n: Int): USTM[Chunk[A]]

    Takes up to the specified maximum number of elements from the queue.

  20. def toChunk: USTM[Chunk[A]]

    Collects all values into a chunk.

  21. def toList: USTM[List[A]]

    Collects all values into a list.

  22. def toString(): String
    Definition Classes
    Any
  23. def toVector: USTM[Vector[A]]

    Collects all values into a vector.

Inherited from AnyVal

Inherited from Any

Ungrouped