public class TimeInNanos extends Object
Constructor and Description |
---|
TimeInNanos()
No args constructor for use in serialization
|
TimeInNanos(Long timeInSeconds,
Long offsetInNanos) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Long |
getOffsetInNanos()
The nanosecond offset from timeInSeconds.
|
Long |
getTimeInSeconds()
The timestamp date, in seconds, in the Unix epoch format.
|
int |
hashCode() |
void |
setOffsetInNanos(Long offsetInNanos)
The nanosecond offset from timeInSeconds.
|
void |
setTimeInSeconds(Long timeInSeconds)
The timestamp date, in seconds, in the Unix epoch format.
|
String |
toString() |
TimeInNanos |
withOffsetInNanos(Long offsetInNanos) |
TimeInNanos |
withTimeInSeconds(Long timeInSeconds) |
public Long getTimeInSeconds()
public void setTimeInSeconds(Long timeInSeconds)
public TimeInNanos withTimeInSeconds(Long timeInSeconds)
public Long getOffsetInNanos()
public void setOffsetInNanos(Long offsetInNanos)
public TimeInNanos withOffsetInNanos(Long offsetInNanos)