codesize
Class Codesize.Item

java.lang.Object
  extended by codesize.Codesize.Item
All Implemented Interfaces:
Comparable
Enclosing class:
Codesize

public static class Codesize.Item
extends Object
implements Comparable

Container which keeps information extracted by Codesize.

Author:
Christian D. Schnell
See Also:
Codesize.processClassFile(File), Codesize.processDirectory(File), Codesize.processZipFile(File), Codesize.processZipFile(File, ZipInputStream)

Method Summary
 int compareTo(Object item)
          Compares this item with another item based on their code sizes.
 int getClassSize()
          Returns the total size of all found class files.
 int getCodeSize()
          Returns the total code size of all found class files.
 File getLocation()
          Returns the file location of the item.
 int getNClassFiles()
          Returns the number of found class files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocation

public File getLocation()
Returns the file location of the item.

Returns:
a File containing the file location

getNClassFiles

public int getNClassFiles()
Returns the number of found class files.

Returns:
the number of found class files

getClassSize

public int getClassSize()
Returns the total size of all found class files.

Returns:
the total size of all found class files

getCodeSize

public int getCodeSize()
Returns the total code size of all found class files.

Returns:
the total code size of all found class files

compareTo

public int compareTo(Object item)
Compares this item with another item based on their code sizes.

Specified by:
compareTo in interface Comparable
Parameters:
item - the item to be compared
Returns:
a negative integer, zero, or a positive integer as this item is less than, equal to, or greater than the specified item.