public class TimeInterval<T> extends Object
TimeInterval represents an item emitted by an
Observable along with the amount of time that elapsed either since the emission of the previous item or (if there was no previous item) since the
Observable was first subscribed to.
| Constructor and Description |
|---|
TimeInterval(long intervalInMilliseconds, T value)
Creates a
TimeInterval object.
|
public TimeInterval(long intervalInMilliseconds,
T value)
TimeInterval object.
intervalInMilliseconds - the number of milliseconds between the time when
value was emitted and the item that was emitted immediately prior to
value, or, if there was no such prior item, since the initial subscription to the
Observable
value - the item emitted by the Observable
public long getIntervalInMilliseconds()
public T getValue()
public int hashCode()
public boolean equals(Objectobj)
public StringtoString()