TimestampIterator


@UnstableApi
public interface TimestampIterator

Known direct subclasses
ConstantRateTimestampIterator

A TimestampIterator that generates monotonically increasing timestamps (in microseconds) distributed evenly over the given durationUs based on the given frameRate.


A primitive long iterator used for generating sequences of timestamps.

Summary

Public methods

abstract TimestampIterator

Returns fresh copy of the iterator.

abstract boolean

Returns whether there is another element.

abstract long

Returns the next timestamp.

Public methods

copyOf

abstract TimestampIterator copyOf()

Returns fresh copy of the iterator.

hasNext

abstract boolean hasNext()

Returns whether there is another element.

next

abstract long next()

Returns the next timestamp.