net.sf.jbenchmark.util.format
Class AbstractFormatter
java.lang.Object
  
net.sf.jbenchmark.util.format.AbstractFormatter
- All Implemented Interfaces: 
 - StatisticFormatter
 
- Direct Known Subclasses: 
 - CSVFormatter, TwikiFormatter
 
- public abstract class AbstractFormatter
- extends java.lang.Object
- implements StatisticFormatter
   
Forms the basis for all formatting classes. Provides a few nice methods that allow us to
 automatically get formatted values for objects.
- Version:
 
  - $Id: AbstractFormatter.java,v 1.1 2004/07/01 07:11:46 twpatkua Exp $
 
- Author:
 
  - Patrick Kua
 
 
 
| 
Method Summary | 
protected  java.lang.String | 
getFormattedValue(java.lang.Object value,
                  java.text.Format formatter)
 
          Format the object if the formatter is not null, otherwise return standard toString(); | 
protected  java.lang.String[] | 
getFormattedValues(java.text.Format[] formats,
                   java.lang.Object[] values)
 
          Format each value with the corresponding format. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
AVERAGE_COLUMN_LENGTH
protected static final int AVERAGE_COLUMN_LENGTH
- Average item length.
- See Also:
 - Constant Field Values
 
 
AbstractFormatter
public AbstractFormatter()
getFormattedValues
protected java.lang.String[] getFormattedValues(java.text.Format[] formats,
                                                java.lang.Object[] values)
- Format each value with the corresponding format. The two arrays should be equal.
 
 
 
getFormattedValue
protected java.lang.String getFormattedValue(java.lang.Object value,
                                             java.text.Format formatter)
- Format the object if the formatter is not null, otherwise return standard toString();