WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.metrics.lines
Class LinesCounter

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

final class LinesCounter
extends Object

Model Object for calculating total lines per file extension, for all extensions. This class uses a List<LineStat>, one for each file extension.

This class is mutable.


Constructor Summary
LinesCounter()
           
 
Method Summary
 void add(FileInfo aFileInfo)
          Add another file to this counter.
 List<LineStat> getStats()
          Return the stats to be displayed to the user.
 long getTotalFiles()
          Return the total number of files for all extensions.
 long getTotalLines()
          Return the total number of lines for all file extensions.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinesCounter

LinesCounter()
Method Detail

add

public void add(FileInfo aFileInfo)
Add another file to this counter.


getStats

public List<LineStat> getStats()
Return the stats to be displayed to the user.


getTotalLines

public long getTotalLines()
Return the total number of lines for all file extensions.


getTotalFiles

public long getTotalFiles()
Return the total number of files for all extensions.


WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26