Class ConversionUtils


  • public class ConversionUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ConversionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> convertProperties​(com.google.protobuf.Struct properties)  
      static com.google.protobuf.Struct convertProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)  
      static com.google.protobuf.Timestamp instantToProtoTimestamp​(java.time.Instant instant)  
      static java.time.Instant protoTimestampToInstant​(com.google.protobuf.Timestamp timestamp)  
      static java.util.Map<java.lang.String,​java.lang.Object> toStringObjectMap​(java.lang.String stringObjectJson)  
      • Methods inherited from class java.lang.Object

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

      • ConversionUtils

        public ConversionUtils()
    • Method Detail

      • convertProperties

        public static com.google.protobuf.Struct convertProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
                                                            throws SagaException
        Throws:
        SagaException
      • convertProperties

        public static java.util.Map<java.lang.String,​java.lang.Object> convertProperties​(com.google.protobuf.Struct properties)
                                                                                        throws SagaException
        Throws:
        SagaException
      • toStringObjectMap

        public static java.util.Map<java.lang.String,​java.lang.Object> toStringObjectMap​(java.lang.String stringObjectJson)
                                                                                        throws SagaException
        Throws:
        SagaException
      • protoTimestampToInstant

        public static java.time.Instant protoTimestampToInstant​(com.google.protobuf.Timestamp timestamp)
      • instantToProtoTimestamp

        public static com.google.protobuf.Timestamp instantToProtoTimestamp​(java.time.Instant instant)