Representation translator between Instance<F> and its associated Rep type.
Instance<F>
Rep
All of implementations must satisfy the following laws:
x
to(from(x))
m
from(to(m))
Converts data into the meta representation.
data
To be converted.
The corresponding meta representation.
Converts rep into the concrete data.
rep
The corresponding concrete data.
rep - To be converted.
Representation translator between
Instance<F>and its associatedReptype.All of implementations must satisfy the following laws:
x;to(from(x))equals tox.m;from(to(m))equals tom.