com.espertech.esper.epl.variable
Class VersionedValue<T>

java.lang.Object
  extended by com.espertech.esper.epl.variable.VersionedValue<T>

public class VersionedValue<T>
extends java.lang.Object

Holds a version of a value and a timestamp when that version is taken.


Constructor Summary
VersionedValue(int version, T value, long timestamp)
          Ctor.
 
Method Summary
 long getTimestamp()
          Returns the time the version was taken.
 T getValue()
          Returns the value.
 int getVersion()
          Returns the version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com