TimeRange.DynamicTimeRange, TimeRange.StaticTimeRange
Constructor and Description |
---|
StaticTimeRange(long startTimeUs,
long endTimeUs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long[] |
getCurrentBoundsMs(long[] out)
Returns the start and end times (in milliseconds) of the TimeRange in the provided array,
or creates a new one.
|
long[] |
getCurrentBoundsUs(long[] out)
Returns the start and end times (in microseconds) of the TimeRange in the provided array,
or creates a new one.
|
int |
hashCode() |
boolean |
isStatic()
Whether the range is static, meaning repeated calls to
TimeRange.getCurrentBoundsMs(long[])
or TimeRange.getCurrentBoundsUs(long[]) will return identical results. |
public StaticTimeRange(long startTimeUs, long endTimeUs)
startTimeUs
- The beginning of the range.endTimeUs
- The end of the range.public boolean isStatic()
TimeRange
TimeRange.getCurrentBoundsMs(long[])
or TimeRange.getCurrentBoundsUs(long[])
will return identical results.public long[] getCurrentBoundsMs(long[] out)
TimeRange
getCurrentBoundsMs
in interface TimeRange
out
- An array to store the start and end times; can be null.public long[] getCurrentBoundsUs(long[] out)
TimeRange
getCurrentBoundsUs
in interface TimeRange
out
- An array to store the start and end times; can be null.