com.ibm.dtfj.analyzer.util
Class ArrayCount

java.lang.Object
  extended by com.ibm.dtfj.analyzer.util.CountedName
      extended by com.ibm.dtfj.analyzer.util.ArrayCount
All Implemented Interfaces:
java.lang.Comparable

public class ArrayCount
extends CountedName


Constructor Summary
ArrayCount(java.lang.String name)
          Typically this will be the name of the class we are going to be counting.
 
Method Summary
 void addSize(int size)
          We've just found an array of this size - add to the stats
 int getAverageElements()
          Return the average number of array elements in the set of arrays we've seen
 int getMaxElements()
          Return the maximum number of array elements in the set of arrays we've seen
 int getMinElements()
          Return the minimum number of array elements in the set of arrays we've seen
 
Methods inherited from class com.ibm.dtfj.analyzer.util.CountedName
addBytes, compareTo, getBytes, getCount, getName, increment, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayCount

public ArrayCount(java.lang.String name)
Typically this will be the name of the class we are going to be counting.

Parameters:
name -
Method Detail

addSize

public void addSize(int size)
We've just found an array of this size - add to the stats

Parameters:
size -

getMinElements

public int getMinElements()
Return the minimum number of array elements in the set of arrays we've seen

Returns:
min elements

getMaxElements

public int getMaxElements()
Return the maximum number of array elements in the set of arrays we've seen

Returns:
max elements

getAverageElements

public int getAverageElements()
Return the average number of array elements in the set of arrays we've seen

Returns:
average elements


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.