Int2ArrFlatBuilder

ostrat.Int2ArrFlatBuilder
trait Int2ArrFlatBuilder[ArrB <: Int2Arr[_]] extends Int2SeqLikeCommonBuilder[ArrB] with IntNArrFlatBuilder[ArrB]

Trait for creating the ArrTBuilder and ArrTFlatBuilder type class instances for Int2Arr final classes. Instances for the ArrMapBuilder type class, for classes / traits you control, should go in the companion object of B. Instances for [[ArrFlatBuilder] 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 IntNArrFlatBuilder[ArrB]
trait ArrFlatBuilder[ArrB]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited types

type BuffT <: Int2Buff[_]

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:
Int2SeqLikeCommonBuilder

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:
IntNArrFlatBuilder
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:
IntNArrFlatBuilder
final override def elemProdSize: Int
def fromIntArray(array: Array[Int]): BB

Attributes

Inherited from:
IntNSeqLikeCommonBuilder

Attributes

Inherited from:
IntNSeqLikeCommonBuilder
final override def newBuff(length: Int): BuffT

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

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

Attributes

Definition Classes
Inherited from:
IntNSeqLikeCommonBuilder