TotallyBuildIterable

io.scalaland.chimney.integrations.TotallyBuildIterable
trait TotallyBuildIterable[Collection, Item]

Tells Chimney how to interact with Collection type to align its behavior with Seq of Items.

Type parameters

Collection

type storing collection of Items - has to be proper type, not higher-kinded type

Item

type of internal items

Attributes

See also
Since

1.0.0

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait TotallyBuildMap[Mapp, Key, Value]

Members list

Value members

Abstract methods

def iterator(collection: Collection): Iterator[Item]

Creates Iterator for the Collection.

Creates Iterator for the Collection.

Attributes

def totalFactory: Factory[Item, Collection]

Factory of the Collection

Factory of the Collection

Attributes

Concrete methods

def to[Collection2](collection: Collection, factory: Factory[Item, Collection2]): Collection2

Converts Collection into Collection2.

Converts Collection into Collection2.

Attributes

def widen[Collection2 >: Collection]: TotallyBuildIterable[Collection2, Item]

Useful since this class is invariant.

Useful since this class is invariant.

Attributes