scala.collection.mutable

ListBuffer

object ListBuffer extends SeqFactory[ListBuffer[A][A]]

This object provides a set of operations to create ListBuffer values.

go to: companion
source: ListBuffer.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. def apply[A](elems: A*): CC[A]

    Creates a list buffer with the specified elements .

  9. def asInstanceOf[T0]: T0

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

  10. implicit def canBuildFrom[A]: CanBuildFrom[scala.collection.mutable.ListBuffer[_], A, ListBuffer[A]]

  11. def clone(): AnyRef

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

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

    Concatenates all argument collections into a single list buffer .

  13. def empty[A]: CC[A]

    An empty collection of type ListBuffer[A]

  14. def eq(arg0: AnyRef): Boolean

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

  15. def equals(arg0: Any): Boolean

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

  16. 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 list buffer containing the results of some element computation a number of times .

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

    Produces a four-dimensional list buffer containing the results of some element computation a number of times .

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

    Produces a three-dimensional list buffer containing the results of some element computation a number of times .

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

    Produces a two-dimensional list buffer containing the results of some element computation a number of times .

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

    Produces a list buffer containing the results of some element computation a number of times .

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

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

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

  23. def hashCode(): Int

    Returns a hash code value for the object .

  24. def isInstanceOf[T0]: Boolean

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

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

    Produces a list buffer containing repeated applications of a function to a start value .

  26. def ne(arg0: AnyRef): Boolean

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

  27. def newBuilder[A]: Builder[A, ListBuffer[A]]

    The default builder for ListBuffer objects.

  28. def notify(): Unit

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

  29. def notifyAll(): Unit

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

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

    Produces a list buffer containing equally spaced values in some integer interval .

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

    Produces a list buffer containing a sequence of increasing of integers .

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

  33. 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 list buffer containing values of a given function over ranges of integer values starting from 0 .

  34. 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 list buffer containing values of a given function over ranges of integer values starting from 0 .

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

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

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

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

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

    Produces a list buffer containing values of a given function over a range of integer values starting from 0 .

  38. def toString(): String

    Returns a string representation of the object .

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

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

  40. def wait(): Unit

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

  42. def wait(arg0: Long): Unit