Type Hierarchy:
Direct Known Subclasses: SequenceAppender<Element>

Since sequences are immutable, this class is used for constructing a new sequence by incrementally appending elements to the empty sequence. This class is mutable but threadsafe.

Initializer
SequenceBuilder()
Attributes
emptySource Code
shared Boolean empty

Determine if the resulting sequence is empty.

sequenceSource Code

The resulting sequence. If no elements have been appended, the empty sequence.

sizeSource Code
shared Integer size

The size of the resulting sequence.

Inherited Attributes
Attributes inherited from: Object
Methods
appendSource Code
shared SequenceBuilder<Element> append(Element element)

Append an element to the sequence and return this SequenceBuilder

appendAllSource Code

Append multiple elements to the sequence and return this SequenceBuilder

Inherited Methods
Methods inherited from: Object