Class/Object

zio.stm

TPriorityQueue

Related Docs: object TPriorityQueue | package stm

Permalink

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. def isEmpty: USTM[Boolean]

    Permalink

    Checks whether the queue is empty.

  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def nonEmpty: USTM[Boolean]

    Permalink

    Checks whether the queue is not empty..

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

    Permalink

    Offers the specified value to the queue.

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

    Permalink

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

  11. def peek: USTM[A]

    Permalink

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

    Permalink

    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]

    Permalink

    Removes all elements from the queue matching the specified predicate.

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

    Permalink

    Retains only elements from the queue matching the specified predicate.

  15. def size: USTM[Int]

    Permalink

    Returns the size of the queue.

  16. def take: USTM[A]

    Permalink

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

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

    Permalink

    Takes all values from the queue.

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

    Permalink

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

    Permalink

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

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

    Permalink

    Collects all values into a chunk.

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

    Permalink

    Collects all values into a list.

  22. def toString(): String

    Permalink
    Definition Classes
    Any
  23. def toVector: USTM[Vector[A]]

    Permalink

    Collects all values into a vector.

Inherited from AnyVal

Inherited from Any

Ungrouped