Package rx.schedulers

Class Timestamped<T>

java.lang.Object
rx.schedulers.Timestamped<T>
Type Parameters:
T - the value type held along with the timestamp

public final class Timestamped<T> extends Object
Composite class that takes a value and a timestamp and wraps them.
  • Field Details

    • timestampMillis

      private final long timestampMillis
    • value

      private final T value
  • Constructor Details

    • Timestamped

      public Timestamped(long timestampMillis, T value)
  • Method Details

    • getTimestampMillis

      public long getTimestampMillis()
      Returns the timestamp, expressed in milliseconds.
      Returns:
      timestamp in milliseconds
    • getValue

      public T getValue()
      Returns the value embedded in the Timestamped object.
      Returns:
      the value
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object