PartiallyBuildMap

io.scalaland.chimney.integrations.PartiallyBuildMap
trait PartiallyBuildMap[Mapp, Key, Value] extends PartiallyBuildIterable[Mapp, (Key, Value)]

Tells Chimney how to interact with Collection type to align its behavior with e.g. NonEmptyMap.

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

Type parameters

Key

type of internal keys

Mapp

type storing collection of Key-Value pairs - has to be proper type, not higher-kinded type

Value

type of internal values

Attributes

See also
Since

1.0.0

Graph
Supertypes
trait PartiallyBuildIterable[Mapp, (Key, Value)]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def iterator(collection: Mapp): Iterator[(Key, Value)]

Creates Iterator for the Collection.

Creates Iterator for the Collection.

Attributes

Inherited from:
PartiallyBuildIterable
def narrow[Collection2 <: Mapp]: PartiallyBuildIterable[Collection2, (Key, Value)]

Attributes

Inherited from:
PartiallyBuildIterable
def partialFactory: Factory[(Key, Value), Result[Mapp]]

Factory of the Collection, validated with partial.Result.

Factory of the Collection, validated with partial.Result.

Attributes

Inherited from:
PartiallyBuildIterable
def to[Collection2](collection: Mapp, factory: Factory[(Key, Value), Collection2]): Collection2

Converts Collection into Collection2.

Converts Collection into Collection2.

Attributes

Inherited from:
PartiallyBuildIterable