JavaScript is disabled on your browser.
Skip navigation links
io.reactivex.rxjava3.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
         @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 value or unit is null
    • Method Detail

      • value

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

        @NonNull
        public @NonNull 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
         @NonNull TimeUnit unit)
        Returns the contained time value in the time unit specified.
        Parameters:
        unit - the time unit
        Returns:
        the converted time
Skip navigation links

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