scala.collection.immutable

Queue

object Queue extends SeqFactory[Queue[A][A]]

This object provides a set of operations to create immutable.Queue values.

go to: companion
source: Queue.scala
    version
  1. 2.8

    authors:
  1. Martin Odersky

Inherited
  1. Hide All
  2. Show all
  1. SeqFactory
  2. TraversableFactory
  3. GenericCompanion
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. type Coll = CC[_]

    The underlying collection type with unknown element type

  2. class GenericCanBuildFrom[A] extends CanBuildFrom[CC[_], A, CC[A]]

    A generic implementation of the CanBuildFrom trait, which forwards all calls to apply(from) to the genericBuilder method of collection from, and which forwards all calls of apply() to the newBuilder method of this factory.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. val Empty: Queue[Nothing]

  9. def apply[A](xs: A*): Queue[A]

    Creates a immutable queue with the specified elements.

  10. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  11. implicit def canBuildFrom[A]: CanBuildFrom[scala.collection.immutable.Queue[_], A, Queue[A]]

    The standard CanBuildFrom instance for immutable.

  12. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  13. def concat[A](xss: Traversable[A]*): CC[A]

    Concatenates all argument collections into a single immutable queue.

  14. def empty[A]: Queue[A]

    An empty collection of type immutable.Queue[A]

  15. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  16. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  17. def fill[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(elem: ⇒ A): CC[CC[CC[CC[CC[A]]]]]

    Produces a five-dimensional immutable queue containing the results of some element computation a number of times.

  18. def fill[A](n1: Int, n2: Int, n3: Int, n4: Int)(elem: ⇒ A): CC[CC[CC[CC[A]]]]

    Produces a four-dimensional immutable queue containing the results of some element computation a number of times.

  19. def fill[A](n1: Int, n2: Int, n3: Int)(elem: ⇒ A): CC[CC[CC[A]]]

    Produces a three-dimensional immutable queue containing the results of some element computation a number of times.

  20. def fill[A](n1: Int, n2: Int)(elem: ⇒ A): CC[CC[A]]

    Produces a two-dimensional immutable queue containing the results of some element computation a number of times.

  21. def fill[A](n: Int)(elem: ⇒ A): CC[A]

    Produces a immutable queue containing the results of some element computation a number of times.

  22. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  23. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  24. def hashCode(): Int

    Returns a hash code value for the object.

  25. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  26. def iterate[A](start: A, len: Int)(f: (A) ⇒ A): CC[A]

    Produces a immutable queue containing repeated applications of a function to a start value.

  27. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  28. def newBuilder[A]: Builder[A, Queue[A]]

    The default builder for immutable.Queue objects.

  29. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  30. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  31. def range(start: Int, end: Int, step: Int): CC[Int]

    Produces a immutable queue containing equally spaced values in some integer interval.

  32. def range(start: Int, end: Int): CC[Int]

    Produces a immutable queue containing a sequence of increasing of integers.

  33. def synchronized[T0](arg0: T0): T0

  34. def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int, n5: Int)(f: (Int, Int, Int, Int, Int) ⇒ A): CC[CC[CC[CC[CC[A]]]]]

    Produces a five-dimensional immutable queue containing values of a given function over ranges of integer values starting from 0.

  35. def tabulate[A](n1: Int, n2: Int, n3: Int, n4: Int)(f: (Int, Int, Int, Int) ⇒ A): CC[CC[CC[CC[A]]]]

    Produces a four-dimensional immutable queue containing values of a given function over ranges of integer values starting from 0.

  36. def tabulate[A](n1: Int, n2: Int, n3: Int)(f: (Int, Int, Int) ⇒ A): CC[CC[CC[A]]]

    Produces a three-dimensional immutable queue containing values of a given function over ranges of integer values starting from 0.

  37. def tabulate[A](n1: Int, n2: Int)(f: (Int, Int) ⇒ A): CC[CC[A]]

    Produces a two-dimensional immutable queue containing values of a given function over ranges of integer values starting from 0.

  38. def tabulate[A](n: Int)(f: (Int) ⇒ A): CC[A]

    Produces a immutable queue containing values of a given function over a range of integer values starting from 0.

  39. def toString(): String

    Returns a string representation of the object.

  40. def unapplySeq[A](x: CC[A]): Some[CC[A]]

    This method is called in a pattern match { case Seq(.

  41. def wait(): Unit

  42. def wait(arg0: Long, arg1: Int): Unit

  43. def wait(arg0: Long): Unit