|
Scala Library
|
|
class
SetBuilder[A, Coll <: Addable[A, Coll] with Iterable[A] with IterableLike[A, Coll]](empty : Coll)
extends Builder[A, Coll]empty - The empty element of the collection.| Value Summary | |
protected var
|
elems : Coll |
| Method Summary | |
def
|
+=
(x : A) : SetBuilder[A, 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 |
def
+=(x : A) : SetBuilder[A, Coll]
elem - The element to be added
def
clear : Unit
def
result : Coll
|
Scala Library
|
|