|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.web4jtools.metrics.lines.LineStat
public final class LineStat
Model Object for line stats for a single file extension.
This class is mutable.
Constructor Summary | |
---|---|
LineStat(SafeText aExtension)
Full constructor. |
Method Summary | |
---|---|
void |
add(FileInfo aFileInfo)
Add a new file to this stat, if its extension matches this object. |
boolean |
equals(Object aThat)
|
Long |
getAverageLinesPerFile()
Return (num lines / num files). |
SafeText |
getExtension()
Return the file extension for this stat. |
Long |
getNumFiles()
Return the number of files for this extension. |
Long |
getNumLines()
Return the number of lines for this extension. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LineStat(SafeText aExtension)
Method Detail |
---|
public SafeText getExtension()
public Long getNumLines()
public Long getNumFiles()
public Long getAverageLinesPerFile()
public void add(FileInfo aFileInfo)
public String toString()
toString
in class Object
public boolean equals(Object aThat)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |