com.ebay.carad.os.vitalsigns
Class DataPoint
java.lang.Object
com.ebay.carad.os.vitalsigns.DataPoint
- All Implemented Interfaces:
- java.lang.Comparable
public class DataPoint
- extends java.lang.Object
- implements java.lang.Comparable
A point of data logged at a given time, which represents the meat of most standard
"data in timeline" type reports.
Sorts itself in order of logtime ascending.
- Version:
- $Id$
- Author:
- Jeremy Thomerson
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
mLogTime
private long mLogTime
mData
private float mData
DataPoint
public DataPoint()
DataPoint
public DataPoint(long logTime,
float data)
getData
public float getData()
setData
public void setData(float data)
getLogTime
public long getLogTime()
setLogTime
public void setLogTime(long logTime)
compareTo
public int compareTo(java.lang.Object other)
- Sorts itself in order of logtime ascending.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
other
- the other Object to compare self to.
- Returns:
- see interface
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2004-2009. All Rights Reserved.