Package io.opencensus.common
Class AutoValue_Duration
- java.lang.Object
-
- io.opencensus.common.Duration
-
- io.opencensus.common.AutoValue_Duration
-
-
Constructor Summary
Constructors Constructor Description AutoValue_Duration(long seconds, int nanos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getNanos()
Returns the number of nanoseconds in theDuration
.long
getSeconds()
Returns the number of seconds in theDuration
.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.common.Duration
compareTo, create, fromMillis, toMillis
-
-
-
-
Method Detail
-
getSeconds
public long getSeconds()
Description copied from class:Duration
Returns the number of seconds in theDuration
.- Specified by:
getSeconds
in classDuration
- Returns:
- the number of seconds in the
Duration
.
-
getNanos
public int getNanos()
Description copied from class:Duration
Returns the number of nanoseconds in theDuration
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-