BuilderArrInt2Flat

ostrat.BuilderArrInt2Flat
trait BuilderArrInt2Flat[ArrB <: ArrInt2[_]] extends BuilderSeqLikeInt2[ArrB], BuilderArrIntNFlat[ArrB]

Trait for creating the ArrTBuilder and ArrTFlatBuilder type class instances for ArrInt2 final classes. Instances for the BuilderArrMap type class, for classes / traits you control, should go in the companion object of B. Instances for [[BuilderArrFlat] should go in the companion object the ArrT final class. The first type parameter is called B a sub class of Int2Elem, because to corresponds to the B in the map(f: A => B): ArrB function.

Attributes

Graph
Supertypes
trait BuilderArrIntNFlat[ArrB]
trait BuilderArrValueNFlat[ArrB]
trait BuilderArrFlat[ArrB]
trait BuilderSeqLikeFlat[ArrB]
trait BuilderSeqLikeInt2[ArrB]
trait BuilderSeqLikeIntN[ArrB]
trait BuilderSeqLikeValueN[ArrB]
trait BuilderSeqLike[ArrB]
trait BuilderColl[ArrB]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type BuffT <: BuffInt2[_]

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

Inherited from:
BuilderSeqLikeInt2

Value members

Inherited methods

final override def buffGrowArr(buff: BuffT, arr: ArrB): Unit

A mutable operation that extends the ArrayBuffer with the elements of the Immutable Array operand.

A mutable operation that extends the ArrayBuffer with the elements of the Immutable Array operand.

Attributes

Definition Classes
Inherited from:
BuilderArrIntNFlat
final override 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

Definition Classes
Inherited from:
BuilderArrIntNFlat
final override def elemProdSize: Int

Attributes

Definition Classes
Inherited from:
BuilderSeqLikeInt2
def fromIntArray(array: Array[Int]): ArrB

Attributes

Inherited from:
BuilderSeqLikeIntN

Attributes

Inherited from:
BuilderSeqLikeIntN
final override 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

Definition Classes
Inherited from:
BuilderSeqLikeIntN