WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.metrics.lines
Class LineStat

Object
  extended by hirondelle.web4jtools.metrics.lines.LineStat

public final class LineStat
extends Object

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

LineStat

public LineStat(SafeText aExtension)
Full constructor.

Method Detail

getExtension

public SafeText getExtension()
Return the file extension for this stat.


getNumLines

public Long getNumLines()
Return the number of lines for this extension.


getNumFiles

public Long getNumFiles()
Return the number of files for this extension.


getAverageLinesPerFile

public Long getAverageLinesPerFile()
Return (num lines / num files).


add

public void add(FileInfo aFileInfo)
Add a new file to this stat, if its extension matches this object.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26