ChunkBuilder

zio.ChunkBuilder
See theChunkBuilder companion object
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.

Attributes

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

Members list

Concise view

Value members

Inherited methods

final def ++=(xs: IterableOnce[A]): Growable.this.type

Attributes

Inherited from:
Growable
final def +=(elem: A): Growable.this.type

Attributes

Inherited from:
Growable
def addAll(xs: IterableOnce[A]): Growable.this.type

Attributes

Inherited from:
Growable
def addOne(elem: A): Growable.this.type

Attributes

Inherited from:
Growable
def clear(): Unit

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Growable
def mapResult[NewTo](f: Chunk[A] => NewTo): Builder[A, NewTo]

Attributes

Inherited from:
Builder
def result(): To

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Attributes

Inherited from:
Builder

Deprecated and Inherited methods

final def +=(elem1: A, elem2: A, elems: A*): Growable.this.type

Attributes

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