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 boolean
equals(java.lang.Object o)
int
getNanos()
Returns the number of nanoseconds after the number of seconds since the Unix Epoch represented by this timestamp.long
getSeconds()
Returns the number of seconds since the Unix Epoch represented by this timestamp.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.common.Timestamp
addDuration, addNanos, compareTo, create, fromMillis, subtractTimestamp
-
-
-
-
Method Detail
-
getSeconds
public long getSeconds()
Description copied from class:Timestamp
Returns the number of seconds since the Unix Epoch represented by this timestamp.- Specified by:
getSeconds
in classTimestamp
- Returns:
- the number of seconds since the Unix Epoch.
-
getNanos
public int getNanos()
Description copied from class:Timestamp
Returns the number of nanoseconds after the number of seconds since the Unix Epoch represented by this timestamp.
-
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
-
-