Package io.opencensus.common
Class AutoValue_Timestamp
- java.lang.Object
-
- io.opencensus.common.Timestamp
-
- io.opencensus.common.AutoValue_Timestamp
-
-
Constructor Summary
Constructors Constructor Description AutoValue_Timestamp(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 after the number of seconds since the Unix Epoch represented by this timestamp.longgetSeconds()Returns the number of seconds since the Unix Epoch represented by this timestamp.inthashCode()java.lang.StringtoString()-
Methods inherited from class io.opencensus.common.Timestamp
addDuration, addNanos, compareTo, create, fromMillis, subtractTimestamp
-
-
-
-
Method Detail
-
getSeconds
public long getSeconds()
Description copied from class:TimestampReturns the number of seconds since the Unix Epoch represented by this timestamp.- Specified by:
getSecondsin classTimestamp- Returns:
- the number of seconds since the Unix Epoch.
-
getNanos
public int getNanos()
Description copied from class:TimestampReturns the number of nanoseconds after the number of seconds since the Unix Epoch represented by this timestamp.
-
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
-
-