java.lang.Object
com.espertech.esper.common.internal.epl.variable.core.VersionedValue<T>

public class VersionedValue<T> extends Object
Holds a version of a value and a timestamp when that version is taken.
  • Constructor Details

    • VersionedValue

      public VersionedValue(int version, T value, long timestamp)
      Ctor.
      Parameters:
      version - version number
      value - value at that version
      timestamp - time when version was taken
  • Method Details

    • getVersion

      public int getVersion()
      Returns the version.
      Returns:
      version
    • getValue

      public T getValue()
      Returns the value.
      Returns:
      value
    • getTimestamp

      public long getTimestamp()
      Returns the time the version was taken.
      Returns:
      time of version
    • toString

      public String toString()
      Overrides:
      toString in class Object