randoop.util
Class Histogram<T>

Object
  extended by Histogram<T>

public final class Histogram<T>
extends Object

Keeps track of how many objects of different kinds are inserted into it.


Field Summary
Modifier and Type Field and Description
 Map<T,Integer> fMap
           
 
Constructor Summary
Constructor and Description
Histogram()
           
Histogram(String name)
           
 
Method Summary
Modifier and Type Method and Description
 void addOneToCount(T t)
           
 void addToCount(T t, int i)
           
 void clear()
           
 int getCount(T t)
           
 String toString()
           
 String toStringSortedByKey()
           
 String toStringSortedByNumbers()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fMap

public final Map<T,Integer> fMap
Constructor Detail

Histogram

public Histogram(String name)

Histogram

public Histogram()
Method Detail

addToCount

public void addToCount(T t,
                       int i)

addOneToCount

public void addOneToCount(T t)

toString

public String toString()
Overrides:
toString in class Object

toStringSortedByNumbers

public String toStringSortedByNumbers()

toStringSortedByKey

public String toStringSortedByKey()

getCount

public int getCount(T t)

clear

public void clear()