This trait forms part of collections that can be augmented
using a +=
operator and that can be cleared of all elements using
a clear
method.
- Companion
- object
- Source
- Growable.scala
Value members
Abstract methods
Adds a single element to this growable collection.
Adds a single element to this growable collection.
- Value Params
- elem
the element to add.
- Returns
the growable collection itself
- Source
- Growable.scala
Concrete methods
Alias for addAll
Alias for addAll
- Source
- Growable.scala
Adds all elements produced by an IterableOnce to this growable collection.
Adds all elements produced by an IterableOnce to this growable collection.
- Value Params
- xs
the IterableOnce producing the elements to add.
- Returns
the growable collection itself.
- Source
- Growable.scala
- Returns
The number of elements in the collection under construction, if it can be cheaply computed, -1 otherwise. The default implementation always returns -1.
- Source
- Growable.scala
Deprecated methods
Adds two or more elements to this growable collection.
Adds two or more elements to this growable collection.
- Value Params
- elem1
the first element to add.
- elem2
the second element to add.
- elems
the remaining elements to add.
- Returns
the growable collection itself
- Deprecated
- Source
- Growable.scala
Inherited methods
Clears the collection's contents.
Clears the collection's contents. After this operation, the collection is empty.
- Inherited from
- Clearable
- Source
- Growable.scala