public class EventTime
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventTime.Serializer |
| Constructor and Description |
|---|
EventTime(long seconds,
long nanoseconds)
Constructs an
EventTime. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static EventTime |
fromEpoch(long epochSeconds)
Constructs an
EventTime. |
static EventTime |
fromEpoch(long epochSeconds,
long nanoseconds)
Constructs an
EventTime. |
static EventTime |
fromEpochMilli(long epochMillisecond)
Constructs an
EventTime. |
long |
getNanoseconds() |
long |
getNanoSeconds()
Deprecated.
As of release 1.9, replaced by
getNanoseconds() |
long |
getSeconds() |
int |
hashCode() |
java.lang.String |
toString() |
public EventTime(long seconds,
long nanoseconds)
EventTime.seconds - the epoch seconds. This should be a 32-bit value.nanoseconds - the nanoseconds. This should be a 32-bit value.public static EventTime fromEpoch(long epochSeconds)
EventTime.epochSeconds - the epoch seconds. This should be a 32-bit value.public static EventTime fromEpoch(long epochSeconds, long nanoseconds)
EventTime.epochSeconds - the epoch seconds. This should be a 32-bit value.nanoseconds - the nanoseconds. This should be a 32-bit value.public static EventTime fromEpochMilli(long epochMillisecond)
EventTime.epochMillisecond - the epoch milli seconds.
This should be a 32-bit value.public long getSeconds()
public long getNanoseconds()
@Deprecated public long getNanoSeconds()
getNanoseconds()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object