Skip to content

Type Adapters  #76

@suhtai

Description

@suhtai

When creating copy constructors it would be useful to have mappings between types that are no exactly the same.

For instance, the representation of a date on the network layer may be a string, but it may be a date on the domain.

We could define strategies to work with such conventions:

@TypeAdapter
fun String.toDate(): Date = ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions