Class InstantTimestampMapper

  • All Implemented Interfaces:
    Mapper<java.time.Instant,​com.google.protobuf.Timestamp>

    public class InstantTimestampMapper
    extends java.lang.Object
    implements Mapper<java.time.Instant,​com.google.protobuf.Timestamp>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Instant toDomain​(com.google.protobuf.Timestamp timestamp)  
      com.google.protobuf.Timestamp toProto​(java.time.Instant instant)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstantTimestampMapper

        public InstantTimestampMapper()
    • Method Detail

      • toDomain

        public java.time.Instant toDomain​(com.google.protobuf.Timestamp timestamp)
        Specified by:
        toDomain in interface Mapper<java.time.Instant,​com.google.protobuf.Timestamp>
      • toProto

        public com.google.protobuf.Timestamp toProto​(java.time.Instant instant)
        Specified by:
        toProto in interface Mapper<java.time.Instant,​com.google.protobuf.Timestamp>