Class AutoValue_Duration

  • All Implemented Interfaces:
    java.lang.Comparable<Duration>

    @Generated("com.google.auto.value.processor.AutoValueProcessor")
    final class AutoValue_Duration
    extends Duration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int nanos  
      private long seconds  
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoValue_Duration​(long seconds, int nanos)  
    • Field Detail

      • seconds

        private final long seconds
      • nanos

        private final int nanos
    • Constructor Detail

      • AutoValue_Duration

        AutoValue_Duration​(long seconds,
                           int nanos)
    • Method Detail

      • getSeconds

        public long getSeconds()
        Description copied from class: Duration
        Returns the number of seconds in the Duration.
        Specified by:
        getSeconds in class Duration
        Returns:
        the number of seconds in the Duration.
      • getNanos

        public int getNanos()
        Description copied from class: Duration
        Returns the number of nanoseconds in the Duration.
        Specified by:
        getNanos in class Duration
        Returns:
        the number of nanoseconds in the Duration.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object