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 booleanequals(java.lang.Object o)intgetNanos()Returns the number of nanoseconds in theDuration.longgetSeconds()Returns the number of seconds in theDuration.inthashCode()java.lang.StringtoString()-
Methods inherited from class io.opencensus.common.Duration
compareTo, create, fromMillis, toMillis
-
-
-
-
Method Detail
-
getSeconds
public long getSeconds()
Description copied from class:DurationReturns the number of seconds in theDuration.- Specified by:
getSecondsin classDuration- Returns:
- the number of seconds in the
Duration.
-
getNanos
public int getNanos()
Description copied from class:DurationReturns the number of nanoseconds in theDuration.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-