public abstract class EventInterval extends Object
Constructor and Description |
---|
EventInterval() |
Modifier and Type | Method and Description |
---|---|
static EventInterval |
finish(long finish) |
long |
getElapsedTimeMs() |
long |
getEndTime() |
abstract OptionalLong |
getFinish() |
abstract OptionalLong |
getStart() |
long |
getStartTime() |
boolean |
isComplete() |
boolean |
isOngoing() |
boolean |
isStarted() |
static EventInterval |
of(OptionalLong start,
OptionalLong end) |
static EventInterval |
proxy(long start,
long end)
Build a proxy event pair from a start and end timestamp
|
static EventInterval |
start(long start) |
EventInterval |
withFinish(long timestampMillis) |
EventInterval |
withStart(long timestampMillis) |
public abstract OptionalLong getStart()
public abstract OptionalLong getFinish()
public boolean isStarted()
public boolean isComplete()
public boolean isOngoing()
public long getStartTime()
public long getEndTime()
public long getElapsedTimeMs()
public static EventInterval proxy(long start, long end)
start
- the start time of the resulting pairend
- the end time of the resulting pairpublic static EventInterval of(OptionalLong start, OptionalLong end)
public static EventInterval start(long start)
public static EventInterval finish(long finish)
public EventInterval withStart(long timestampMillis)
public EventInterval withFinish(long timestampMillis)