Package net.sourceforge.pmd.stat
Class DataPoint
- java.lang.Object
-
- net.sourceforge.pmd.stat.DataPoint
-
-
Constructor Summary
Constructors Constructor Description DataPoint()
Constructor for DataPoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DataPoint rhs)
Compares this data point with the given datapoint.java.lang.String
getMessage()
Node
getNode()
double
getScore()
void
setMessage(java.lang.String message)
void
setNode(Node node)
void
setScore(double score)
-
-
-
Method Detail
-
compareTo
public int compareTo(DataPoint rhs)
Compares this data point with the given datapoint.- Specified by:
compareTo
in interfacejava.lang.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 java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
getScore
public double getScore()
-
setScore
public void setScore(double score)
-
-