scala.collection.mutable

trait Buffer

[source: scala/collection/mutable/Buffer.scala]

@cloneable

trait Buffer[A]
extends Sequence[A] with TraversableClass[A, Buffer] with BufferTemplate[A, Buffer[A]]
Buffers are used to create sequences of elements incrementally by appending, prepending, or inserting new elements. It is also possible to access and modify elements in a random access fashion via the index of the element in the current sequence.
Author
Matthias Zenger
Martin Odersky
Version
2.8
Direct Known Subclasses:
JavaConversions.JListWrapper, ArrayBuffer, ListBuffer, ObservableBuffer, SynchronizedBuffer, BufferWrapper, RefBuffer

Method Summary
override def companion : Companion[Buffer]
The factory companion object that builds instances of class CC
Methods inherited from BufferTemplate
apply (abstract), update (abstract), length (abstract), += (abstract), clear (abstract), +: (abstract), insertAll (abstract), remove (abstract), remove, -=, ++:, ++:, append, appendAll, prepend, prependAll, prependAll, insert, trimStart, trimEnd, <<, stringPrefix, ++=, +, +, ++, ++, -, -, --, --
Methods inherited from Cloneable
clone
Methods inherited from Shrinkable
-=, --=, --=
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from Unhashable
hashCode, identityHashCode
Methods inherited from SequenceTemplate
lengthCompare, size, isDefinedAt, zip, zipAll, zipWithIndex, segmentLength, prefixLength, indexWhere, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, lastIndexWhere, reverse, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, padTo, toSequence, indices, view, view, equals, toString, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from IterableTemplate
iterator (abstract), elements, foreach, isEmpty, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, first, firstOption, toSeq
Methods inherited from TraversableClass
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString, addString
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def companion : Companion[Buffer]
The factory companion object that builds instances of class CC
Overrides
Sequence.companion, TraversableClass.companion