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
- Alphabetic
- By Inheritance
- Queue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +:(c: Chunk[A]): Queue[A]
Prepends a chunk to the start of this chunk queue.
- def :+(c: Chunk[A]): Queue[A]
Appends a chunk to the end of this chunk queue.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chunks: scala.collection.immutable.Queue[Chunk[A]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def drop(n: Int): Queue[A]
Drops the first
n
elements of this chunk queue in a way that preserves chunk structure. - def dropRight(n: Int): Queue[A]
Drops the right-most
n
elements of this chunk queue in a way that preserves chunk structure. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Queue → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- Queue → AnyRef → Any
- def isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator: Iterator[A]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val size: Int
- 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)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Queue[A]
Takes the first
n
elements of this chunk queue in a way that preserves chunk structure. - def takeRight(n: Int): Queue[A]
Takes the right-most
n
elements of this chunk queue in a way that preserves chunk structure. - def toChunk: Chunk[A]
Converts this chunk queue to a single chunk, copying all chunks to a single chunk.
- def toString(): String
- Definition Classes
- Queue → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated