JavaScript is disabled on your browser.
Skip navigation links
io.reactivex.schedulers

Class Timed<T>

  • Type Parameters:
    T - the value type


    public final class Timed<T>
    extends Object 
    Holds onto a value along with time information.
    • Constructor Detail

      • Timed

        public Timed(@NonNull
         T value,
         long time,
         @NonNull
         TimeUnit unit)
        Constructs a Timed instance with the given value and time information.
        Parameters:
        value - the value to hold
        time - the time to hold
        unit - the time unit, not null
        Throws:
        NullPointerException - if unit is null
    • Method Detail

      • value

        @NonNull
        public T value()
        Returns the contained value.
        Returns:
        the contained value
      • unit

        @NonNull
        public TimeUnit 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

        public long time(@NonNull
         TimeUnit unit)
        Returns the contained time value in the time unit specified.
        Parameters:
        unit - the time unt
        Returns:
        the converted time
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /