This trait forms part of collections that can be augmented using a+= operator and that can be cleared of all elements using aclear method.
Adds a single element to this growable collection.
Adds a single element to this growable collection.
the element to add.
the growable collection itself
Alias foraddAll
Alias foraddOne
Adds all elements produced by an IterableOnce to this growable collection.
Adds all elements produced by an IterableOnce to this growable collection.
the IterableOnce producing the elements to add.
the growable collection itself.
The number of elements in the collection under construction, if it can be cheaply computed, -1 otherwise.
The number of elements in the collection under construction, if it can be cheaply computed, -1 otherwise.
The number of elements. The default implementation always returns -1.
Adds two or more elements to this growable collection.
Adds two or more elements to this growable collection.
the first element to add.
the second element to add.
the remaining elements to add.
the growable collection itself
[Since version 2.13.0]Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecatedClears the collection's contents.
Clears the collection's contents. After this operation, the collection is empty.