Constructor and Description |
---|
EventPair(T on,
T off)
Constructs a new
EventPair with the specified pair of events |
Modifier and Type | Method and Description |
---|---|
int |
getChannel() |
long |
getDuration() |
T |
getOff() |
long |
getOffTime() |
T |
getOn() |
long |
getOnTime() |
Object |
getSlot() |
String |
toString() |
EventPair<T> |
withOffTime(long offTime)
Creates a new off event pair of the same type and slot with the specified
off timestamp.
|
public EventPair(T on, T off)
EventPair
with the specified pair of eventson
- the on eventoff
- the off eventIllegalArgumentException
- if events do not represent a correct bounded pairpublic long getOnTime()
public long getOffTime()
public long getDuration()
public int getChannel()
public EventPair<T> withOffTime(long offTime)
offTime
- the new off time measured in microseconds, value must be after
the on time.Copyright © 2015 Kreatious LLC. All rights reserved.