Created
March 28, 2020 23:28
-
-
Save furkanakdemir/6b656f4ce06f8186a3506290e41c5068 to your computer and use it in GitHub Desktop.
An interface to bidirectionally map domain and entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Entity | |
interface Domain | |
interface LocalMapper<D : Domain, E : Entity> { | |
fun mapEntity(entity: E): Domain | |
fun mapDomain(domain: D): Entity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment