vectorConstructor
Builds a Vector.
Attributes
- Source
- SeqConstructor.scala
- Graph
-
- Supertypes
- Self type
-
vectorConstructor.type
Members list
Type members
Types
The mutable builder that collects the elements.
Value members
Concrete methods
Adds a to builder. For setConstructor, an element equal to one added before is dropped.
Adds a to builder. For setConstructor, an element equal to one added before is dropped.
Attributes
- Source
- SeqConstructor.scala
Returns an empty collection.
Creates an empty builder. sizeHint is the expected number of elements: the array-backed constructors use it as the initial capacity (at least 1), chunkConstructor passes it to its builder, and the others ignore it. Only the array-backed constructors use ct, to create arrays of the element type.
Creates an empty builder. sizeHint is the expected number of elements: the array-backed constructors use it as the initial capacity (at least 1), chunkConstructor passes it to its builder, and the others ignore it. Only the array-backed constructors use ct, to create arrays of the element type.
Attributes
- Source
- SeqConstructor.scala
Returns the collection of the elements added to builder. The array-backed constructors trim the array to the number of elements.
Returns the collection of the elements added to builder. The array-backed constructors trim the array to the number of elements.
Attributes
- Source
- SeqConstructor.scala
Inherited methods
Adds the Boolean a to builder. This and the other primitive adders (addByte, addShort, addInt, addLong, addFloat, addDouble and addChar) call add by default, which boxes the value. The array-backed constructors override them to write into a primitive array without boxing, and chunkConstructor overrides all eight to forward the value to ChunkBuilder.addOne.
Adds the Boolean a to builder. This and the other primitive adders (addByte, addShort, addInt, addLong, addFloat, addDouble and addChar) call add by default, which boxes the value. The array-backed constructors override them to write into a primitive array without boxing, and chunkConstructor overrides all eight to forward the value to ChunkBuilder.addOne.
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala
Attributes
- Inherited from:
- SeqConstructor
- Source
- SeqConstructor.scala