Interface Mapper<T,​E extends com.google.protobuf.Message>

  • Type Parameters:
    T - The protobuf generated class
    E - The domain class
    All Known Implementing Classes:
    InstantTimestampMapper, NullMapper

    public interface Mapper<T,​E extends com.google.protobuf.Message>
    Convert between a domain class to a protobuf generated class. Used with conjunction of ProtoClass
    • Method Detail

      • toDomain

        T toDomain​(E protoValue)
      • toProto

        E toProto​(T domainValue)