hudson.plugins.testabilityexplorer.report.costs
Class ClassCost
java.lang.Object
hudson.plugins.testabilityexplorer.report.costs.ClassCost
- All Implemented Interfaces:
- TestabilityCost, java.io.Serializable
public class ClassCost
- extends java.lang.Object
- implements java.io.Serializable, TestabilityCost
Encapsulates the testability of a single class.
- Author:
- reik.schatz
- See Also:
- Serialized Form
|
Constructor Summary |
ClassCost(java.lang.String name,
int cost)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ClassCost
public ClassCost(java.lang.String name,
int cost)
addToCostStack
public void addToCostStack(MethodCost methodTestability)
getName
public java.lang.String getName()
getCost
public int getCost()
getCostStack
public java.util.Collection<MethodCost> getCostStack()
sort
public void sort()
- Sorts the all costs contained in this ClassCost highest first.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2009. All Rights Reserved.