java.lang.Object | |
↳ | io.reactivex.schedulers.Timed<T> |
Holds onto a value along with time information.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Timed(T value, long time, TimeUnit unit)
Constructs a Timed instance with the given value and time information.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object other) | ||||||||||
int | hashCode() | ||||||||||
long |
time()
Returns the time value.
| ||||||||||
long |
time(TimeUnit unit)
Returns the contained time value in the time unit specified.
| ||||||||||
String | toString() | ||||||||||
TimeUnit |
unit()
Returns the time unit of the contained time.
| ||||||||||
T |
value()
Returns the contained value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a Timed instance with the given value and time information.
value | the value to hold |
---|---|
time | the time to hold |
unit | the time unit, not null |
NullPointerException | if unit is null |
---|
Returns the time value.
Returns the contained time value in the time unit specified.
unit | the time unt |
---|
Returns the time unit of the contained time.
Returns the contained value.