net.sourceforge.cobertura.coveragedata
Class PackageData
java.lang.Object
net.sourceforge.cobertura.coveragedata.CoverageDataContainer
net.sourceforge.cobertura.coveragedata.PackageData
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, CoverageData, HasBeenInstrumented
public class PackageData
- extends CoverageDataContainer
- implements java.lang.Comparable, HasBeenInstrumented
- See Also:
- Serialized Form
Method Summary |
void |
addClassData(ClassData classData)
|
int |
compareTo(java.lang.Object o)
This is required because we implement Comparable. |
boolean |
contains(java.lang.String name)
|
boolean |
equals(java.lang.Object obj)
Returns true if the given object is an instance of the
PackageData class, and it contains the same data as this
class. |
java.util.SortedSet |
getClasses()
|
java.lang.String |
getName()
|
java.lang.String |
getSourceFileName()
|
java.util.Collection |
getSourceFiles()
|
int |
hashCode()
It is highly recommended that classes extending this
class override this hashCode method and generate a more
effective hash code. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
name
private java.lang.String name
PackageData
public PackageData(java.lang.String name)
addClassData
public void addClassData(ClassData classData)
compareTo
public int compareTo(java.lang.Object o)
- This is required because we implement Comparable.
- Specified by:
compareTo
in interface java.lang.Comparable
contains
public boolean contains(java.lang.String name)
equals
public boolean equals(java.lang.Object obj)
- Returns true if the given object is an instance of the
PackageData class, and it contains the same data as this
class.
- Overrides:
equals
in class CoverageDataContainer
- Parameters:
obj
- An object to test for equality.
- Returns:
- True if the objects are equal.
getClasses
public java.util.SortedSet getClasses()
getName
public java.lang.String getName()
getSourceFileName
public java.lang.String getSourceFileName()
getSourceFiles
public java.util.Collection getSourceFiles()
hashCode
public int hashCode()
- Description copied from class:
CoverageDataContainer
- It is highly recommended that classes extending this
class override this hashCode method and generate a more
effective hash code.
- Overrides:
hashCode
in class CoverageDataContainer