Packages

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Queue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +:(c: Chunk[A]): Queue[A]

    Prepends a chunk to the start of this chunk queue.

  4. def :+(c: Chunk[A]): Queue[A]

    Appends a chunk to the end of this chunk queue.

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

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

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

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

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(that: Any): Boolean
    Definition Classes
    Queue → AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    Queue → AnyRef → Any
  15. def isEmpty: Boolean
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def iterator: Iterator[A]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def nonEmpty: Boolean
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. val size: Int
  23. def startsWith(seq: Seq[A]): Boolean

    check to see if this starts with the items in the given seq should be the same as take(seq.size).toChunk == Chunk.seq(seq)

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def take(n: Int): Queue[A]

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

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

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

  27. def toChunk: Chunk[A]

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

  28. def toString(): String
    Definition Classes
    Queue → AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped