strawman.collections.CollectionStrawMan6

ArrayBuffer

Related Docs: object ArrayBuffer | package CollectionStrawMan6

class ArrayBuffer[A] extends Seq[A] with SeqLike[A, ArrayBuffer] with Buildable[A, ArrayBuffer[A]] with Builder[A, ArrayBuffer[A]]

Concrete collection type: ArrayBuffer

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ArrayBuffer
  2. Builder
  3. Buildable
  4. Seq
  5. ArrayLike
  6. SeqLike
  7. SeqMonoTransforms
  8. Iterable
  9. IterableLike
  10. IterablePolyTransforms
  11. IterableMonoTransforms
  12. IterableOps
  13. FromIterable
  14. IterableOnce
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayBuffer()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def ++[B >: A](xs: IterableOnce[B]): ArrayBuffer[B]

    Overridden to use array copying for efficiency where possible.

    Overridden to use array copying for efficiency where possible.

    Definition Classes
    ArrayBufferIterablePolyTransforms
  4. def ++=(xs: IterableOnce[A]): ArrayBuffer.this.type

    Bulk append.

    Bulk append. Can be overridden if specialized implementations are available.

    Definition Classes
    Builder
  5. def +=(elem: A): ArrayBuffer.this.type

    Append an element

    Append an element

    Definition Classes
    ArrayBufferBuilder
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  7. def apply(n: Int): A

    Definition Classes
    ArrayBufferArrayLike
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def className: String

    The class name of this collection.

    The class name of this collection. To be used for converting to string. Collections generally print like this:

    <className>(elem_1, ..., elem_n)

    Definition Classes
    ArrayBufferIterableOps
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def coll: ArrayBuffer.this.type

    The collection itself

    The collection itself

    Attributes
    protected
    Definition Classes
    IterableIterablePolyTransformsIterableMonoTransformsIterableOps
  12. def copyToArray[B >: A](xs: Array[B], start: Int = 0): xs.type

    Copy all elements of this collection to array xs, starting at start.

    Copy all elements of this collection to array xs, starting at start.

    Definition Classes
    IterableOps
  13. def drop(n: Int): ArrayBuffer[A]

    The rest of the collection without its n first elements.

    The rest of the collection without its n first elements. For linear, immutable collections this should avoid making a copy.

    Definition Classes
    IterableMonoTransforms
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def filter(p: (A) ⇒ Boolean): ArrayBuffer[A]

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def flatMap[B](f: (A) ⇒ IterableOnce[B]): ArrayBuffer[B]

    Flatmap

    Flatmap

    Definition Classes
    IterablePolyTransforms
  19. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Fold left

    Fold left

    Definition Classes
    IterableOps
  20. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Fold right

    Fold right

    Definition Classes
    IterableOps
  21. def foreach(f: (A) ⇒ Unit): Unit

    Apply f to each element for tis side effects

    Apply f to each element for tis side effects

    Definition Classes
    IterableOps
  22. def fromIterable[B](it: Iterable[B]): ArrayBuffer[B]

  23. def fromIterableWithSameElemType(coll: Iterable[A]): ArrayBuffer[A]

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection.

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection. Overridden in StringOps and ArrayOps.

    Attributes
    protected[this]
    Definition Classes
    IterableLikeIterableMonoTransforms
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def head: A

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    IterableOps
  27. def indexWhere(p: (A) ⇒ Boolean): Int

    The index of the first element in this collection for which p holds.

    The index of the first element in this collection for which p holds.

    Definition Classes
    IterableOps
  28. def isEmpty: Boolean

    Is the collection empty?

    Is the collection empty?

    Definition Classes
    IterableOps
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def iterator: Iterator[Nothing]

    Definition Classes
    ArrayBufferIterableOnce
  31. def knownSize: Int

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise.

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

    Definition Classes
    ArrayBufferIterableOps
  32. def length: Int

    Definition Classes
    ArrayBufferArrayLike
  33. def map[B](f: (A) ⇒ B): ArrayBuffer[B]

    Map

    Map

    Definition Classes
    IterablePolyTransforms
  34. def mapResult[NewTo](f: (ArrayBuffer[A]) ⇒ NewTo): Builder[A, NewTo]

    A builder resulting from this builder my mapping the result using f.

    A builder resulting from this builder my mapping the result using f.

    Definition Classes
    Builder
  35. def mkString(sep: String): String

    A string showing all elements of this collection, separated by string sep.

    A string showing all elements of this collection, separated by string sep.

    Definition Classes
    IterableOps
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def newBuilder: ArrayBuffer[A]

    Creates a new builder.

    Creates a new builder.

    Attributes
    protected[this]
    Definition Classes
    ArrayBufferBuildable
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def partition(p: (A) ⇒ Boolean): (ArrayBuffer[A], ArrayBuffer[A])

    Optimized, push-based version of partition.

    Optimized, push-based version of partition.

    Definition Classes
    BuildableIterableMonoTransforms
  41. def result: ArrayBuffer[A]

    Result collection consisting of all elements appended so far.

    Result collection consisting of all elements appended so far.

    Definition Classes
    ArrayBufferBuilder
  42. def reverse: ArrayBuffer[A]

    Definition Classes
    SeqMonoTransforms
  43. def size: Int

    The number of elements in this collection.

    The number of elements in this collection. Does not terminate for infinite collections.

    Definition Classes
    IterableOps
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def tail: ArrayBuffer[A]

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    IterableMonoTransforms
  46. def take(n: Int): ArrayBuffer[A]

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    ArrayBufferIterableMonoTransforms
  47. def to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[A]

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A].

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A]. Example uses:

    xs.to(List) xs.to(ArrayBuffer)

    Definition Classes
    IterableOps
  48. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  49. def toString(): String

    Definition Classes
    IterableOps → Any
  50. def trimStart(n: Int): Unit

    New operation: destructively drop elements at start of buffer.

  51. def view: ArrayBufferView[Nothing]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    ArrayBufferIterableOps
  52. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def zip[B](xs: IterableOnce[B]): ArrayBuffer[(A, B)]

    Zip.

    Zip. Interesting because it requires to align to source collections.

    Definition Classes
    IterablePolyTransforms

Inherited from Builder[A, ArrayBuffer[A]]

Inherited from Buildable[A, ArrayBuffer[A]]

Inherited from Seq[A]

Inherited from ArrayLike[A]

Inherited from SeqLike[A, ArrayBuffer]

Inherited from SeqMonoTransforms[A, ArrayBuffer[A]]

Inherited from Iterable[A]

Inherited from IterableLike[A, ArrayBuffer]

Inherited from IterablePolyTransforms[A, ArrayBuffer]

Inherited from IterableMonoTransforms[A, ArrayBuffer[A]]

Inherited from IterableOps[A]

Inherited from FromIterable[ArrayBuffer]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped