Scala Library
|
|
abstract
class
LazyBuilder[Elem, +To]
extends
Builder[Elem, To]Value Summary | |
protected var
|
parts
: ListBuffer[Traversable[Elem]]
The different segments of elements to be added to the builder, represented as iterators
|
Method Summary | |
override def
|
++=
(xs : Traversable[Elem]) : LazyBuilder[Elem, To]
Adds a number of elements provided by an iterable object to this collection.
|
override def
|
++=
(xs : Iterator[Elem]) : LazyBuilder[Elem, To]
Adds a number of elements provided by an iterator to this collection.
|
def
|
+=
(x : Elem) : LazyBuilder[Elem, To]
Adds a single element to the builder.
|
def
|
clear
: Unit
Clear the contents of this builder
|
abstract def
|
result
: To
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 |
protected
var
parts : ListBuffer[Traversable[Elem]]
Method Details |
def
+=(x : Elem) : LazyBuilder[Elem, To]
elem -
The element to be addedoverride
def
++=(xs : Iterator[Elem]) : LazyBuilder[Elem, To]
iter -
the iterator.override
def
++=(xs : Traversable[Elem]) : LazyBuilder[Elem, To]
iter -
the iterable object.abstract
def
result : To
def
clear : Unit
Scala Library
|
|