TimestampIterator
@UnstableApi
interface TimestampIterator
ConstantRateTimestampIterator |
A |
A primitive long iterator used for generating sequences of timestamps.
Summary
Public functions |
|
|---|---|
TimestampIterator! |
copyOf()Returns fresh copy of the iterator. |
Long |
Returns the last (final) timestamp this iterator generates, in microseconds. |
Boolean |
hasNext()Returns whether there is another element. |
Long |
next()Returns the next timestamp. |
Public functions
getLastTimestampUs
fun getLastTimestampUs(): Long
Returns the last (final) timestamp this iterator generates, in microseconds.
This method returns TIME_UNSET if the last timestamp is unknown, or when no timestamp will be generated.