Skip to content

Instantly share code, notes, and snippets.

@furkanakdemir
Last active March 28, 2020 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkanakdemir/e38c6b40101680acaff7473315662899 to your computer and use it in GitHub Desktop.
Save furkanakdemir/e38c6b40101680acaff7473315662899 to your computer and use it in GitHub Desktop.
An interface to bidirectionally map domain and raw
interface Raw
interface Domain
interface RemoteMapper<D : Domain, R : Raw> {
fun mapRaw(raw: R): D
fun mapDomain(domain: D): R
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment