scala.collection

mutable

package mutable

Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class AddingBuilder [Elem, To <: Addable[Elem, To] with Iterable[Elem] with IterableLike[Elem, To]] extends Builder[Elem, To]

    The canonical builder for collections that are addable, i.

  2. class ArrayBuffer [A] extends Buffer[A] with GenericTraversableTemplate[A, ArrayBuffer] with BufferLike[A, ArrayBuffer[A]] with IndexedSeqOptimized[A, ArrayBuffer[A]] with Builder[A, ArrayBuffer[A]] with ResizableArray[A]

    An implementation of the Buffer class using an array to represent the assembled sequence internally.

  3. class ArrayBuilder [T] extends Builder[T, Array[T]]

    A builder class for arrays.

  4. trait ArrayLike [A, +Repr] extends IndexedSeqOptimized[A, Repr]

    A common supertrait of ArrayOps and WrappedArray that factors out most operations on arrays and wrapped arrays.

  5. class ArrayOps [T] extends ArrayLike[T, Array[T]]

    This class serves as a wrapper for Arrays with all the operations found in indexed sequences.

  6. class ArraySeq [A] extends IndexedSeq[A] with GenericTraversableTemplate[A, ArraySeq] with IndexedSeqOptimized[A, ArraySeq[A]]

    A class for polymorphic arrays of elements that's represented internally by an array of objects.

  7. class ArrayStack [T] extends Seq[T] with Cloneable[ArrayStack[T]]

    Simple stack class backed by an array.

  8. class BitSet extends Set[Int] with BitSet with BitSetLike[BitSet] with SetLike[Int, BitSet]

    A class for mutable bitsets.

  9. trait Buffer [A] extends Seq[A] with GenericTraversableTemplate[A, Buffer] with BufferLike[A, Buffer[A]]

    Buffers are used to create sequences of elements incrementally by appending, prepending, or inserting new elements.

  10. trait BufferLike [A, +This <: BufferLike[A, This] with Buffer[A]] extends Growable[A] with Shrinkable[A] with Scriptable[A] with Subtractable[A, This] with Cloneable[This] with SeqLike[A, This]

    A template trait for buffers of type Buffer[A].

  11. trait BufferProxy [A] extends Buffer[A] with Proxy

    This is a simple proxy class for scala.collection.mutable.Buffer.

  12. trait Builder [-Elem, +To] extends Growable[Elem]

    The base trait of all builders.

  13. trait Cloneable [+A <: AnyRef] extends AnyRef

    A trait for cloneable collections.

  14. trait CloneableCollection extends AnyRef

    The J2ME version of the library defined this trait with a clone method to substitute for the lack of Object.clone there.

  15. trait ConcurrentMap [A, B] extends Map[A, B]

    A template trait for mutable maps that allow concurrent access.

  16. class DefaultEntry [A, B] extends HashEntry[A, DefaultEntry[A, B]]

    Class used internally for default map model.

  17. trait DefaultMapModel [A, B] extends Map[A, B]

    This class is used internally.

  18. class DoubleLinkedList [A] extends LinearSeq[A] with GenericTraversableTemplate[A, DoubleLinkedList] with DoubleLinkedListLike[A, DoubleLinkedList[A]]

    This class implements double linked lists where both the head (elem), the tail (next) and a reference to the previous node (prev) are mutable.

  19. trait DoubleLinkedListLike [A, This <: Seq[A] with DoubleLinkedListLike[A, This]] extends LinkedListLike[A, This]

    This extensible class may be used as a basis for implementing double linked lists.

  20. trait FlatHashTable [A] extends AnyRef

    An implementation class backing a HashSet.

  21. class GrowingBuilder [Elem, To <: Growable[Elem]] extends Builder[Elem, To]

    The canonical builder for collections that are growable, i.

  22. trait HashEntry [A, E] extends AnyRef

    Class used internally.

  23. class HashMap [A, B] extends Map[A, B] with MapLike[A, B, HashMap[A, B]] with HashTable[A]

    This class implements mutable maps using a hashtable.

  24. class HashSet [A] extends Set[A] with GenericSetTemplate[A, HashSet] with SetLike[A, HashSet[A]] with FlatHashTable[A]

    This class implements mutable sets using a hashtable.

  25. trait HashTable [A] extends AnyRef

    This class can be used to construct data structures that are based on hashtables.

  26. class History [Evt, Pub] extends Subscriber[Evt, Pub] with Iterable[(Pub, Evt)]

    History[A, B] objects may subscribe to events of type A published by an object of type B.

  27. class ImmutableMapAdaptor [A, B] extends Map[A, B]

    This class can be used as an adaptor to create mutable maps from immutable map implementations.

  28. class ImmutableSetAdaptor [A] extends Set[A]

    This class can be used as an adaptor to create mutable sets from immutable set implementations.

  29. trait IndexedSeq [A] extends Seq[A] with IndexedSeq[A] with GenericTraversableTemplate[A, IndexedSeq] with IndexedSeqLike[A, IndexedSeq[A]]

    A subtrait of collection.IndexedSeq which represents sequences that can be mutated.

  30. trait IndexedSeqLike [A, +Repr] extends IndexedSeqLike[A, Repr]

    A subtrait of scala.

  31. trait IndexedSeqOptimized [A, +Repr] extends IndexedSeqLike[A, Repr] with IndexedSeqOptimized[A, Repr]

    A subtrait of scala.

  32. trait IndexedSeqView [A, +Coll] extends IndexedSeq[A] with IndexedSeqOptimized[A, IndexedSeqView[A, Coll]] with SeqView[A, Coll] with SeqViewLike[A, Coll, IndexedSeqView[A, Coll]]

    A non-strict view of a mutable IndexedSeq.

  33. trait Iterable [A] extends Traversable[A] with Iterable[A] with GenericTraversableTemplate[A, Iterable] with IterableLike[A, Iterable[A]]

    A base trait for iterable collections that can be mutated.

  34. class LazyBuilder [Elem, +To] extends Builder[Elem, To]

    A builder that constructs its result lazily.

  35. trait LinearSeq [A] extends Seq[A] with LinearSeq[A] with GenericTraversableTemplate[A, LinearSeq] with LinearSeqLike[A, LinearSeq[A]]

    A subtrait of collection.LinearSeq which represents sequences that can be mutated.

  36. class LinkedEntry [A, B] extends HashEntry[A, LinkedEntry[A, B]]

    Class for the linked hash map entry, used internally.

  37. class LinkedHashMap [A, B] extends Map[A, B] with MapLike[A, B, LinkedHashMap[A, B]] with HashTable[A]

    This class implements mutable maps using a hashtable.

  38. class LinkedHashSet [A] extends Set[A] with GenericSetTemplate[A, LinkedHashSet] with SetLike[A, LinkedHashSet[A]] with FlatHashTable[A]

    This class implements mutable sets using a hashtable.

  39. class LinkedList [A] extends LinearSeq[A] with GenericTraversableTemplate[A, LinkedList] with LinkedListLike[A, LinkedList[A]]

    This class implements single linked lists where both the head (elem) and the tail (next) are mutable.

  40. trait LinkedListLike [A, This <: Seq[A] with LinkedListLike[A, This]] extends SeqLike[A, This]

    This extensible class may be used as a basis for implementing linked list.

  41. class ListBuffer [A] extends Buffer[A] with GenericTraversableTemplate[A, ListBuffer] with BufferLike[A, ListBuffer[A]] with Builder[A, List[A]] with SeqForwarder[A]

    A Buffer implementation back up by a list.

  42. class ListMap [A, B] extends Map[A, B] with MapLike[A, B, ListMap[A, B]]

    A simple mutable map backed by a list.

  43. trait Map [A, B] extends Iterable[(A, B)] with Map[A, B] with MapLike[A, B, Map[A, B]]

    A base trait for maps that can be mutated.

  44. class MapBuilder [A, B, Coll <: Map[A, B] with MapLike[A, B, Coll]] extends Builder[(A, B), Coll]

    The canonical builder for immutable maps, working with the map's + method to add new elements.

  45. trait MapLike [A, B, +This <: MapLike[A, B, This] with Map[A, B]] extends MapLike[A, B, This] with Builder[(A, B), This] with Growable[(A, B)] with Shrinkable[A] with Cloneable[This]

    A template trait for mutable maps.

  46. trait MapProxy [A, B] extends Map[A, B] with MapProxyLike[A, B, Map[A, B]]

    This trait implements a proxy for scala.collection.mutable.Map.

  47. trait MultiMap [A, B] extends Map[A, Set[B]]

    A trait for mutable maps with multiple values assigned to a key.

  48. class MutableList [A] extends LinearSeq[A] with LinearSeqOptimized[A, MutableList[A]] with Builder[A, MutableList[A]]

    This class is used internally to represent mutable lists.

  49. trait ObservableBuffer [A] extends Buffer[A] with Publisher[Message[A] with Undoable]

    This class is typically used as a mixin.

  50. trait ObservableMap [A, B] extends Map[A, B] with Publisher[Message[(A, B)] with Undoable]

    This class is typically used as a mixin.

  51. trait ObservableSet [A] extends Set[A] with Publisher[Message[A] with Undoable]

    This class is typically used as a mixin.

  52. class OpenHashMap [Key, Value] extends Map[Key, Value] with MapLike[Key, Value, OpenHashMap[Key, Value]]

    A mutable hash map based on an open hashing scheme.

  53. class PriorityQueue [A] extends Seq[A] with SeqLike[A, PriorityQueue[A]] with Growable[A] with Cloneable[PriorityQueue[A]] with Builder[A, PriorityQueue[A]]

    This class implements priority queues using a heap.

  54. class PriorityQueueProxy [A] extends PriorityQueue[A] with Proxy

    This class servers as a proxy for priority queues.

  55. trait Publisher [Evt] extends AnyRef

    Publisher[A,This] objects publish events of type A to all registered subscribers.

  56. class Queue [A] extends MutableList[A] with Cloneable[Queue[A]]

    Queue objects implement data structures that allow to insert and retrieve elements in a first-in-first-out (FIFO) manner.

  57. trait QueueProxy [A] extends Queue[A] with Proxy

    Queue objects implement data structures that allow to insert and retrieve elements in a first-in-first-out (FIFO) manner.

  58. trait ResizableArray [A] extends IndexedSeq[A] with GenericTraversableTemplate[A, ResizableArray] with IndexedSeqOptimized[A, ResizableArray[A]]

    This class is used internally to implement data structures that are based on resizable arrays.

  59. class RevertibleHistory [Evt <: Undoable, Pub] extends History[Evt, Pub] with Undoable

    A revertible history is a History object which supports an undo operation.

  60. trait Seq [A] extends Iterable[A] with Seq[A] with GenericTraversableTemplate[A, Seq] with SeqLike[A, Seq[A]]

    A subtrait of collection.Seq which represents sequences that can be mutated.

  61. trait Set [A] extends Iterable[A] with Set[A] with GenericSetTemplate[A, Set] with SetLike[A, Set[A]]

    A base trait for sets that can be mutated.

  62. class SetBuilder [A, Coll <: Addable[A, Coll] with Iterable[A] with IterableLike[A, Coll]] extends AddingBuilder[A, Coll]

    The canonical builder for mutable Sets.

  63. trait SetLike [A, +This <: SetLike[A, This] with Set[A]] extends SetLike[A, This] with Scriptable[A] with Builder[A, This] with Growable[A] with Shrinkable[A] with Cloneable[Set[A]]

    A template trait for mutable sets of type mutable.Set[A].

  64. trait SetProxy [A] extends Set[A] with SetProxyLike[A, Set[A]]

    This is a simple wrapper class for scala.collection.mutable.Set.

  65. class Stack [A] extends Seq[A] with Cloneable[Stack[A]]

    A stack implements a data structure which allows to store and retrieve objects in a last-in-first-out (LIFO) fashion.

  66. trait StackProxy [A] extends Stack[A] with Proxy

    A stack implements a data structure which allows to store and retrieve objects in a last-in-first-out (LIFO) fashion.

  67. class StringBuilder extends Builder[Char, String] with CharSequence with IndexedSeq[Char] with IndexedSeqOptimized[Char, IndexedSeq[Char]]

    A builder for mutable sequence of characters.

  68. trait Subscriber [-Evt, -Pub] extends AnyRef

    Subscriber[A, B] objects may subscribe to events of type A published by an object of type B.

  69. trait SynchronizedBuffer [A] extends Buffer[A]

    This class should be used as a mixin.

  70. trait SynchronizedMap [A, B] extends Map[A, B]

    This class should be used as a mixin.

  71. class SynchronizedPriorityQueue [A] extends PriorityQueue[A]

    This class implements synchronized priority queues using a binary heap.

  72. class SynchronizedQueue [A] extends Queue[A]

    This is a synchronized version of the Queue[T] class.

  73. trait SynchronizedSet [A] extends Set[A]

    This class should be used as a mixin.

  74. class SynchronizedStack [A] extends Stack[A]

    This is a synchronized version of the Stack[T] class.

  75. trait Traversable [A] extends Traversable[A] with GenericTraversableTemplate[A, Traversable] with TraversableLike[A, Traversable[A]] with Mutable

    A trait for traversable collections that can be mutated.

  76. trait Undoable extends AnyRef

    Classes that mix in the Undoable class provide an operation undo which can be used to undo the last operation.

  77. class WeakHashMap [A, B] extends JMapWrapper[A, B] with JMapWrapperLike[A, B, WeakHashMap[A, B]]

    A hash map with references to entries which are weakly reachable.

  78. class WrappedArray [T] extends IndexedSeq[T] with ArrayLike[T, WrappedArray[T]]

    A class representing Array[T].

  79. class WrappedArrayBuilder [A] extends Builder[A, WrappedArray[A]]

    A builder class for arrays.

Value Members

  1. object ArrayBuffer extends SeqFactory[ArrayBuffer]

    Factory object for the ArrayBuffer class.

  2. object ArrayBuilder extends AnyRef

    A companion object for array builders.

  3. object ArrayOps extends AnyRef

    A companion object for ArrayOps.

  4. object ArraySeq extends SeqFactory[ArraySeq]

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

  5. object BitSet extends BitSetFactory[BitSet]

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

  6. object Buffer extends SeqFactory[Buffer]

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

  7. object DoubleLinkedList extends SeqFactory[DoubleLinkedList]

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

  8. object HashMap extends MutableMapFactory[HashMap]

    This object provides a set of operations needed to create mutable.HashMap values.

  9. object HashSet extends MutableSetFactory[HashSet]

    This object provides a set of operations needed to create mutable.HashSet values.

  10. object IndexedSeq extends SeqFactory[IndexedSeq]

    This object provides a set of operations to create mutable.IndexedSeq values.

  11. object IndexedSeqView extends AnyRef

    An object containing the necessary implicit definitions to make SeqViews work.

  12. object Iterable extends TraversableFactory[Iterable]

    This object provides a set of operations to create mutable.Iterable values.

  13. object LinearSeq extends SeqFactory[LinearSeq]

    This object provides a set of operations to create mutable.LinearSeq values.

  14. object LinkedHashMap extends MutableMapFactory[LinkedHashMap]

    This object provides a set of operations needed to create LinkedHashMap values.

  15. object LinkedHashSet extends MutableSetFactory[LinkedHashSet]

    This object provides a set of operations needed to create LinkedHashSet values.

  16. object LinkedList extends SeqFactory[LinkedList]

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

  17. object ListBuffer extends SeqFactory[ListBuffer]

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

  18. object ListMap extends MutableMapFactory[ListMap]

    This object provides a set of operations needed to create mutable.ListMap values.

  19. object Map extends MutableMapFactory[Map]

    This object provides a set of operations needed to create mutable.Map values.

  20. object OpenHashMap extends AnyRef

  21. object Queue extends AnyRef

  22. object ResizableArray extends SeqFactory[ResizableArray]

  23. object Seq extends SeqFactory[Seq]

    This object provides a set of operations to create mutable.Seq values.

  24. object Set extends MutableSetFactory[Set]

    This object provides a set of operations needed to create mutable.Set values.

  25. object Stack extends AnyRef

  26. object Traversable extends TraversableFactory[Traversable]

    This object provides a set of operations to create mutable.Traversable values.

  27. object WeakHashMap extends MutableMapFactory[WeakHashMap]

    This object provides a set of operations needed to create WeakHashMap values.

  28. object WrappedArray extends AnyRef

    A companion object used to create instances of WrappedArray.