scala.collection

mutable

package mutable

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[A][A]] with BufferLike[A, ArrayBuffer[A]] with IndexedSeqLike[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 IndexedSeqLike[A, Repr]

    A subtrait of collection

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

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

    Simple stack class backed by an array

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

    A class for mutable bitsets

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

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

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

    A template trait for buffers of type Buffer[A]

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

    This is a simple proxy class for

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

    The base trait of all builders

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

    A trait for cloneable collections

  12. trait CloneableCollection extends AnyRef

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

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

    A template trait for mutable maps that allow concurrent access

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

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

    This class is used internally

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

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

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

  18. trait FlatHashTable[A] extends AnyRef

  19. class GenericArray[A] extends IndexedSeq[A] with GenericTraversableTemplate[A, GenericArray[A][A]] with IndexedSeqLike[A, GenericArray[A]]

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

  20. trait HashEntry[A, E] extends AnyRef

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

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

    This class implements mutable sets using a hashtable

  23. trait HashTable[A] extends AnyRef

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

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

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

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

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

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

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

    A subtrait of collection

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

    A subtrait of scala

  29. trait IndexedSeqView[A, +Coll] extends IndexedSeqView[A, Coll]

    A non-strict view of a mutable IndexedSeq

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

    A subtrait of

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

    A builder that constructs its result lazily

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

    A subtrait of collection

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

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

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

    Todo: this has O(n) cost for element removal

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

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

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

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

    A Buffer implementation back up by a list

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

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

    This trait represents mutable maps

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

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

    A template trait for mutable maps of type mutable

  42. trait MapLikeBase[A, B, +This <: MapLikeBase[A, B, This] with Map[A, B]] extends MapLike[A, B, This] with Cloneable[This]

    The reason for this class is so that we can have both a generic immutable + with signature

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

    This is a simple wrapper class for

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

    This class is typically used as a mixin

  44. class MutableList[A] extends LinearSeq[A] with LinearSeqLike[A, MutableList[A]] with Builder[A, MutableList[A]]

    This class is used internally to represent mutable lists

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

    This class is typically used as a mixin

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

    This class is typically used as a mixin

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

    This class is typically used as a mixin

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

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

    This class implements priority queues using a heap

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

    This class implements priority queues using a heap

  51. trait Publisher[Evt] extends AnyRef

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

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

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

  54. trait ResizableArray[A] extends IndexedSeq[A] with GenericTraversableTemplate[A, ResizableArray[A][A]] with IndexedSeqLike[A, ResizableArray[A]]

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

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

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

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

    A subtrait of collection

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

    A generic trait for mutable sets

  58. class SetBuilder[A, Coll <: Addable[A, Coll] with Iterable[A] with IterableLike[A, Coll]] extends Builder[A, Coll]

    The canonical builder for collections that are addable, i

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

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

    This is a simple wrapper class for

    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

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

  62. class StringBuilder extends Builder[Char, String] with IndexedSeq[Char]

    A mutable sequence of characters

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

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

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

    This class should be used as a mixin

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

    This class should be used as a mixin

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

    This class implements synchronized priority queues using a heap

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

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

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

    This class should be used as a mixin

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

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

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

    A subtrait of collection

  71. trait Undoable extends AnyRef

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

  72. class WeakHashMap[A, B] extends JMapWrapper[A, B]

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

    A class representing Array[T]

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

    A builder class for arrays

Value Members

  1. object ArrayBuffer extends SeqFactory[ArrayBuffer[A][A]]

    Factory object for ArrayBuffer class

  2. object ArrayBuilder extends AnyRef

  3. object ArrayOps extends AnyRef

  4. object BitSet extends BitSetFactory[BitSet]

  5. object Buffer extends SeqFactory[Buffer[A][A]]

    Factory object for Buffer trait

  6. object DoubleLinkedList extends SeqFactory[DoubleLinkedList[A][A]]

  7. object GenericArray extends SeqFactory[GenericArray[A][A]]

  8. object HashMap extends MutableMapFactory[HashMap[A, B][A, B]]

    This class implements mutable maps using a hashtable

  9. object HashSet extends SetFactory[HashSet[A][A]]

    Factory object for HashSet class

  10. object IndexedSeq extends SeqFactory[IndexedSeq[A][A]]

  11. object Iterable extends TraversableFactory[Iterable[A][A]]

    A factory object for the trait

    object LinearSeq extends SeqFactory[LinearSeq[A][A]]

  12. object LinkedHashMap extends MutableMapFactory[LinkedHashMap[A, B][A, B]]

    This class implements mutable maps using a hashtable

  13. object LinkedHashSet extends SetFactory[LinkedHashSet[A][A]]

    Factory object for LinkedHashSet class

  14. object LinkedList extends SeqFactory[LinkedList[A][A]]

  15. object ListBuffer extends SeqFactory[ListBuffer[A][A]]

    Factory object for ListBuffer class

  16. object ListMap extends MutableMapFactory[ListMap[A, B][A, B]]

    This class implements mutable maps using a list

  17. object Map extends MutableMapFactory[Map[A, B][A, B]]

  18. object OpenHashMap extends AnyRef

  19. object ResizableArray extends SeqFactory[ResizableArray[A][A]]

  20. object Seq extends SeqFactory[Seq[A][A]]

    A factory object for the trait Seq

  21. object Set extends SetFactory[Set[A][A]]

    The canonical factory methods for

    object StringBuilder extends AnyRef

  22. object Traversable extends TraversableFactory[Traversable[A][A]]

    A factory object for the trait Traversable

  23. object WrappedArray extends AnyRef