SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries
Class TimeSeries.Entry<T,V>

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.timeseries.TimeSeries.Entry<T,V>
Type Parameters:
T - the time type
V - the value type
All Implemented Interfaces:
java.util.Map.Entry<T,V>
Direct Known Subclasses:
MultiVariateTimeSeries.Entry, TimeSeries.Entry
Enclosing interface:
TimeSeries<T,V>

public static class TimeSeries.Entry<T,V>
extends java.lang.Object
implements java.util.Map.Entry<T,V>

A time series is composed of a sequence of Entrys.

An Entry is immutable.


Field Summary
 T time
          the time index, timestamp
 V value
          the value
 
Constructor Summary
TimeSeries.Entry(T time, V value)
          Construct an entry from a time-value pair.
 
Method Summary
 T getKey()
           
 V getValue()
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

time

public final T time
the time index, timestamp


value

public final V value
the value

Constructor Detail

TimeSeries.Entry

public TimeSeries.Entry(T time,
                        V value)
Construct an entry from a time-value pair.

Parameters:
time - the time
value - the value
Method Detail

getKey

public T getKey()
Specified by:
getKey in interface java.util.Map.Entry<T,V>

getValue

public V getValue()
Specified by:
getValue in interface java.util.Map.Entry<T,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface java.util.Map.Entry<T,V>

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.