public class DataItem
extends java.lang.Object
| Constructor and Description |
|---|
DataItem(long nTime,
double nValue)
Constructor, initializes the time and value variables.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object anObject)
compare with an object and see if they are equal.
|
long |
getTime()
Regular getter for the time of the Item.
|
double |
getValue()
Regular getter for the value of the Item.
|
int |
hashCode()
Method to get the information of the DataItem as a hash
|
public DataItem(long nTime,
double nValue)
nTime - Time (in milliseconds) since last samplingnValue - Value obtained of a given sample on nTimepublic long getTime()
public double getValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object anObject)
equals in class java.lang.ObjectanObject - object type to which to compare to.