Scala Library
|
|
class
MapBuilder[A, B, Coll <: Map[A, B] with
MapLike[A, B, Coll]](empty : Coll)
extends
Builder[(A, B), Coll]empty -
The empty element of the collection.Value Summary | |
protected var
|
elems : Coll |
Method Summary | |
def
|
+=
(x : (A, B)) : MapBuilder[A, B, Coll]
Adds a single element to the builder.
|
def
|
clear
: Unit
Clear the contents of this builder
|
def
|
result
: Coll
Returns collection resulting from this builder. The buffer's contents
are undefined afterwards.
|
Methods inherited from Builder | |
sizeHint, mapResult |
Methods inherited from Growable | |
+=, ++=, ++= |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
Method Details |
elem -
The element to be added
def
clear : Unit
def
result : Coll
Scala Library
|
|