in scala.collection.jcl
trait Buffer

`abstract trait` Buffer [A]
  `extends` java.lang.Object
  `with` scala.collection.jcl.MutableSeq[A]
  `with` scala.collection.jcl.Collection[A]
  `with` scala.collection.jcl.Ranged[scala.Int, A]
  `with` scala.ScalaObject

  A mutable sequence that supports element insertion and update.

Author:
  Sean McDirmid

Direct Known Subclasses:
  BufferWrapper, Range

Class Summary
`protected` | `class` Range

Type Summary
`final` `protected` | `type` SortedSelf

Def Summary
`override` | `def` + (a: A) : Buffer.this.type
`override` | `def` -= (a: A) : scala.Unit
| `def` add (a: A) : scala.Boolean
| `def` add (idx: scala.Int, a: A) : scala.Unit Inserts "a" into this buffer just before the element at index "idx."
| `def` addAll (idx: scala.Int, that: scala.Iterable[A]) : scala.Unit Inserts all elements of `that` into this buffer just before the element at index `idx`.
`final` | `def` compare (k0: scala.Int, k1: scala.Int) : scala.Int Indices are compared through subtraction.
`abstract` `override` | `def` elements : scala.collection.jcl.BufferIterator[scala.Int, A]
`override` | `def` first : scala.Int The first index of a buffer is 0.
`override` | `def` isEmpty : scala.Boolean
`override` | `def` last : scala.Int The last index of a buffer is its size - 1.
`override` | `def` pfilter (p: (A) => scala.Boolean) : scala.collection.jcl.MutableSeq[A]
`override` | `def` rangeImpl (from: scala.Option[scala.Int], until: scala.Option[scala.Int]) : scala.collection.jcl.Buffer[A]
| `def` remove (idx: scala.Int) : A Removes the element at index "idx"
| `def` set (idx: scala.Int, a: A) : A Replaces the element at index "idx" with "a."
`override` | `def` transform (f: (A) => A) : scala.Boolean
| `def` update (idx: scala.Int, a: A) : scala.Unit Equivalent to set except the replaced element is not returned.

Def inherited from scala.collection.jcl.MutableSeq[A]
apply , elements, indexOf, isEmpty, length, pfilter, pmap

Def inherited from scala.collection.jcl.Collection[A]
+ , ++, +=, -=, add, addAll, hasAll, pfilter, transform

Def inherited from scala.collection.jcl.Ranged[scala.Int, A]
compare , first, from, last, range, rangeImpl, until

Def Detail

`override def` + (a: A): Buffer.this.type

`override def` -= (a: A): scala.Unit

`def` add (a: A): scala.Boolean

Returns:
  s always true.

`def` add (idx: scala.Int, a: A): scala.Unit

  Inserts "a" into this buffer just before the element at index "idx."

`def` addAll (idx: scala.Int, that: scala.Iterable[A]): scala.Unit

  Inserts all elements of `that` into this buffer just before the element at index `idx`.

Parameters:
  `idx -` ..
Parameters:
  `that -` ..

`final def` compare (k0: scala.Int, k1: scala.Int): scala.Int

  Indices are compared through subtraction.

`abstract override def` elements : scala.collection.jcl.BufferIterator[scala.Int, A]

`override def` first : scala.Int

  The first index of a buffer is 0.

`override def` isEmpty : scala.Boolean

`override def` last : scala.Int

  The last index of a buffer is its size - 1.

`override def` pfilter (p: (A) => scala.Boolean): scala.collection.jcl.MutableSeq[A]

`override def` rangeImpl (from: scala.Option[scala.Int], until: scala.Option[scala.Int]): scala.collection.jcl.Buffer[A]

`def` remove (idx: scala.Int): A

  Removes the element at index "idx"

`def` set (idx: scala.Int, a: A): A

  Replaces the element at index "idx" with "a."

Returns:
  s the element replaced.

`override def` transform (f: (A) => A): scala.Boolean

`def` update (idx: scala.Int, a: A): scala.Unit

  Equivalent to set except the replaced element is not returned.