PartiallyBuildIterable

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

Tells Chimney how to interact with Collection type to align its behavior with e.g. NonEmpty* collections of Items.

It's factory should perform validation of a collection once all its elements has been obtained.

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 PartiallyBuildMap[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 partialFactory: Factory[Item, Result[Collection]]

Factory of the Collection, validated with partial.Result.

Factory of the Collection, validated with partial.Result.

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]: PartiallyBuildIterable[Collection2, Item]

Useful since this class is invariant.

Useful since this class is invariant.

Attributes

Deprecated methods

def narrow[Collection2 <: Collection]: PartiallyBuildIterable[Collection2, Item]

Attributes

Deprecated
true