Package io.reactivex.rxjava3.schedulers
Class Timed<T>
java.lang.Object
io.reactivex.rxjava3.schedulers.Timed<T>
- Type Parameters:
T
- the value type
Holds onto a value along with time information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
time
final long time -
unit
-
-
Constructor Details
-
Timed
Constructs aTimed
instance with the given value and time information.- Parameters:
value
- the value to holdtime
- the time to holdunit
- the time unit, not null- Throws:
NullPointerException
- ifvalue
orunit
isnull
-
-
Method Details
-
value
Returns the contained value.- Returns:
- the contained value
-
unit
Returns the time unit of the contained time.- Returns:
- the time unit of the contained time
-
time
public long time()Returns the time value.- Returns:
- the time value
-
time
Returns the contained time value in the time unit specified.- Parameters:
unit
- the time unit- Returns:
- the converted time
-
equals
-
hashCode
public int hashCode() -
toString
-