com.schneide.crap4j.crap
Class GenericCrapData<O>

java.lang.Object
  extended by com.schneide.crap4j.crap.GenericCrapData<O>
All Implemented Interfaces:
IContextedCrapData<O>, ICrapData

public class GenericCrapData<O>
extends java.lang.Object
implements IContextedCrapData<O>


Constructor Summary
GenericCrapData(O context, ICrapData data)
           
GenericCrapData(O context, int crappyMethods, int totalMethods, double crap, int crapLoad, double coverage, double complexity)
           
 
Method Summary
 double getComplexity()
           
 O getContext()
           
 double getCoverage()
           
 double getCrap()
           
 int getCrapLoad()
           
 double getCrapPercentage()
           
 int getCrappyMethods()
           
 int getTotalMethods()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericCrapData

public GenericCrapData(O context,
                       ICrapData data)

GenericCrapData

public GenericCrapData(O context,
                       int crappyMethods,
                       int totalMethods,
                       double crap,
                       int crapLoad,
                       double coverage,
                       double complexity)
Method Detail

getContext

public O getContext()
Specified by:
getContext in interface IContextedCrapData<O>

getCoverage

public double getCoverage()
Specified by:
getCoverage in interface ICrapData

getCrap

public double getCrap()
Specified by:
getCrap in interface ICrapData

getCrapLoad

public int getCrapLoad()
Specified by:
getCrapLoad in interface ICrapData

getCrappyMethods

public int getCrappyMethods()
Specified by:
getCrappyMethods in interface ICrapData

getTotalMethods

public int getTotalMethods()
Specified by:
getTotalMethods in interface ICrapData

getCrapPercentage

public double getCrapPercentage()
Specified by:
getCrapPercentage in interface ICrapData

getComplexity

public double getComplexity()
Specified by:
getComplexity in interface ICrapData

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.