Class ProtoDurations


  • public final class ProtoDurations
    extends java.lang.Object
    Common utilities for dealing with Duration, such as conversion to java.time types.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.protobuf.Duration fromJavaTime​(java.time.Duration d)
      Converts a Duration to Duration.
      static java.time.Duration toJavaTime​(com.google.protobuf.Duration d)
      Converts a Duration to Duration.
      • Methods inherited from class java.lang.Object

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

      • fromJavaTime

        public static com.google.protobuf.Duration fromJavaTime​(java.time.Duration d)
        Converts a Duration to Duration.
      • toJavaTime

        public static java.time.Duration toJavaTime​(com.google.protobuf.Duration d)
        Converts a Duration to Duration.