BuilderArrValueNMap

ostrat.BuilderArrValueNMap
trait BuilderArrValueNMap[B <: ValueNElem, ArrB <: ArrValueN[B]] extends BuilderSeqLikeValueNMap[B, ArrB], BuilderArrMap[B, ArrB]

Trait for creating the ArrTBuilder. Instances for the BuilderArrMap type class, for classes / traits you control, should go in the companion object of B. The first type parameter is called B, because to corresponds to the B in map(f: A => B): ArrB function.

Attributes

Graph
Supertypes
trait BuilderArrMap[B, ArrB]
trait BuilderSeqLikeValueNMap[B, ArrB]
trait BuilderSeqLikeMap[B, ArrB]
trait BuilderCollMap[B, ArrB]
trait BuilderSeqLikeValueN[ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderColl[ArrB]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait BuilderArrDblNMap[B, ArrB]
trait BuilderArrDbl2Map[B, ArrB]
trait BuilderArrDbl3Map[B, ArrB]
trait BuilderArrDbl4Map[B, ArrB]
trait BuilderArrDbl5Map[B, ArrB]
trait BuilderArrDbl6Map[B, ArrB]
trait BuilderArrIntNMap[B, ArrB]
trait BuilderArrInt1Map[A, ArrT]
trait BuilderArrInt2Map[B, ArrB]
trait BuilderArrInt3Map[B, ArrB]
trait BuilderArrInt4Map[B, ArrB]
trait BuilderArrInt5Map[B, ArrB]
trait BuilderArrInt6Map[B, ArrB]
Show all

Members list

Type members

Types

type BuffT <: BuffValueN[B]

BuffT can be inbuilt Jvm type like ArrayBuffer[Int] for B = Int and BB = Ints, or it can be a compile time wrapped Arraybuffer inheriting from BuffProdHomo.

BuffT can be inbuilt Jvm type like ArrayBuffer[Int] for B = Int and BB = Ints, or it can be a compile time wrapped Arraybuffer inheriting from BuffProdHomo.

Attributes

Value members

Inherited methods

def buffContains(buff: BuffT, newElem: B): Boolean

Attributes

Inherited from:
BuilderArrMap
def buffGrow(buff: BuffT, newElem: B): Unit

A mutable operation that extends the ArrayBuffer by a single element of type B.

A mutable operation that extends the ArrayBuffer by a single element of type B.

Attributes

Inherited from:
BuilderCollMap
def buffGrowIter(buff: BuffT, newElems: Iterable[B]): Unit

A mutable operation that extends the BuffSequ with the elements of the Iterable operand.

A mutable operation that extends the BuffSequ with the elements of the Iterable operand.

Attributes

Inherited from:
BuilderSeqLikeMap
def buffToSeqLike(buff: BuffT): ArrB

converts a the buffer type to the target compound class.

converts a the buffer type to the target compound class.

Attributes

Inherited from:
BuilderColl

Attributes

Inherited from:
BuilderSeqLikeValueN
override def empty: ArrB

Creates a new empty SeqLike of type BB.

Creates a new empty SeqLike of type BB.

Attributes

Definition Classes
Inherited from:
BuilderSeqLikeMap
def indexSet(seqLike: ArrB, index: Int, newElem: B): Unit

Sets the value in a SeqLike of type BB. This is usually used in conjunction with uninitialised method.

Sets the value in a SeqLike of type BB. This is usually used in conjunction with uninitialised method.

Attributes

Inherited from:
BuilderSeqLikeMap
def iterMap[A](inp: Iterable[A], f: A => B): ArrB

Attributes

Inherited from:
BuilderArrMap
def newBuff(length: Int): BuffT

Creates a new empty BuffSequ with a default capacity of 4 elements.

Creates a new empty BuffSequ with a default capacity of 4 elements.

Attributes

Inherited from:
BuilderColl
def uninitialised(length: Int): ArrB

Creates a new uninitialised SeqLike of type BB of the given length.

Creates a new uninitialised SeqLike of type BB of the given length.

Attributes

Inherited from:
BuilderSeqLikeMap