ChunkBuilder

sealed abstract class ChunkBuilder[A] extends Builder[A, Chunk[A]]

A ChunkBuilder[A] can build a Chunk[A] given elements of type A. ChunkBuilder is a mutable data structure that is implemented to efficiently build chunks of unboxed primitives and for compatibility with the Scala collection library.

Companion:
object
trait Builder[A, Chunk[A]]
trait Growable[A]
trait Clearable
class Object
trait Matchable
class Any
class Boolean
class Byte
class Char
class Double
class Float
class Int
class Long
class Short

Value members

Inherited methods

final def ++=(xs: IterableOnce[A]): ChunkBuilder[A]
Inherited from:
Growable
final def +=(elem: A): ChunkBuilder[A]
Inherited from:
Growable
Inherited from:
Growable
def addOne(elem: A): ChunkBuilder[A]
Inherited from:
Growable
def clear(): Unit
Inherited from:
Builder
Inherited from:
Growable
def mapResult[NewTo](f: Chunk[A] => NewTo): Builder[A, NewTo]
Inherited from:
Builder
def result(): Chunk[A]
Inherited from:
Builder
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
Inherited from:
Builder
def sizeHint(size: Int): Unit
Inherited from:
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
Inherited from:
Builder

Deprecated and Inherited methods

@inline @deprecated(message = "Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", since = "2.13.0")
final def +=(elem1: A, elem2: A, elems: A*): ChunkBuilder[A]
Deprecated
[Since version 2.13.0] Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated
Inherited from:
Growable