Adds a single element to the builder.
Adds a single element to the builder.
the element to be added.
the builder itself.
Clears the contents of this builder.
Clears the contents of this builder. After execution of this method the builder will contain no elements.
Produces a collection from the added elements.
Produces a collection from the added elements. The builder's contents are undefined after this operation.
a collection containing the elements added to this builder.
Gives a hint how many elements are expected to be added
when the next result is called.
Gives a hint how many elements are expected to be added
when the next result is called. Some builder classes
will optimize their representation based on the hint. However,
builder implementations are still required to work correctly even if the hint is
wrong, i.e. a different number of elements is added.
the hint how many elements will be added.
Adds all elements produced by a TraversableOnce to this coll.
Adds all elements produced by a TraversableOnce to this coll.
the TraversableOnce producing the elements to add.
the coll itself.
Extension of
scala.collection.mutable.Builderusing Long indexeselement type
LArray type to generate