final class Queue[A] extends AnyRef

A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.

This is similar to a queue of individual elements but chunk structure is maintained.

Source
Chunk.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Queue
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Queue[A] toany2stringadd[Queue[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +:(c: Chunk[A]): Queue[A]

    Prepends a chunk to the start of this chunk queue.

  5. def ->[B](y: B): (Queue[A], B)
    Implicit
    This member is added by an implicit conversion from Queue[A] toArrowAssoc[Queue[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def :+(c: Chunk[A]): Queue[A]

    Appends a chunk to the end of this chunk queue.

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. val chunks: scala.collection.immutable.Queue[Chunk[A]]
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def drop(n: Int): Queue[A]

    Drops the first n elements of this chunk queue in a way that preserves chunk structure.

  12. def dropRight(n: Int): Queue[A]

    Drops the right-most n elements of this chunk queue in a way that preserves chunk structure.

  13. def ensuring(cond: (Queue[A]) => Boolean, msg: => Any): Queue[A]
    Implicit
    This member is added by an implicit conversion from Queue[A] toEnsuring[Queue[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Queue[A]) => Boolean): Queue[A]
    Implicit
    This member is added by an implicit conversion from Queue[A] toEnsuring[Queue[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: => Any): Queue[A]
    Implicit
    This member is added by an implicit conversion from Queue[A] toEnsuring[Queue[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Queue[A]
    Implicit
    This member is added by an implicit conversion from Queue[A] toEnsuring[Queue[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean
    Definition Classes
    Queue → AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Queue[A] toStringFormat[Queue[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    Queue → AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def iterator: Iterator[A]
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val size: Int
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def take(n: Int): Queue[A]

    Takes the first n elements of this chunk queue in a way that preserves chunk structure.

  31. def takeRight(n: Int): Queue[A]

    Takes the right-most n elements of this chunk queue in a way that preserves chunk structure.

  32. def toChunk: Chunk[A]

    Converts this chunk queue to a single chunk, copying all chunks to a single chunk.

  33. def toString(): String
    Definition Classes
    Queue → AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def [B](y: B): (Queue[A], B)
    Implicit
    This member is added by an implicit conversion from Queue[A] toArrowAssoc[Queue[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromQueue[A] to any2stringadd[Queue[A]]

Inherited by implicit conversion StringFormat fromQueue[A] to StringFormat[Queue[A]]

Inherited by implicit conversion Ensuring fromQueue[A] to Ensuring[Queue[A]]

Inherited by implicit conversion ArrowAssoc fromQueue[A] to ArrowAssoc[Queue[A]]

Ungrouped