net.sourceforge.pmd.stat
Class DataPoint
java.lang.Object
net.sourceforge.pmd.stat.DataPoint
- All Implemented Interfaces:
- Comparable<DataPoint>
public class DataPoint
- extends Object
- implements Comparable<DataPoint>
Datapoint used for rules that deal with metrics.
- Since:
- Aug 8, 2002
- Author:
- David Dixon-Peugh
Constructor Summary |
DataPoint()
Constructor for DataPoint. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataPoint
public DataPoint()
- Constructor for DataPoint.
compareTo
public int compareTo(DataPoint rhs)
- Compares this data point with the given datapoint.
- Specified by:
compareTo
in interface Comparable<DataPoint>
- Parameters:
rhs
- the other data point
- Returns:
- 0 if equal; a value less than 0 if this point's score is smaller than the other data point;
a value greater than 0 if this point's score is greater than the other data point.
getNode
public Node getNode()
setNode
public void setNode(Node node)
getMessage
public String getMessage()
setMessage
public void setMessage(String message)
getScore
public double getScore()
setScore
public void setScore(double score)
Copyright © 2002-2016 InfoEther. All Rights Reserved.