Return to Snippet

Revision: 19418
at October 23, 2009 05:49 by ff1959


Initial Code
@Override
  public String toString()
  {
    List<java.util.Map<String,Object>> list = ClassUtils.getArrayList();
    list.add(Util.formatArg("size",getSize()));
    list.add(Util.formatArg("max",getMax()));
    list.add(Util.formatArg("min",getMin()));
    list.add(Util.formatArg("arithmetic mean",getArithmeticMean()));
    list.add(Util.formatArg("geometric mean",getGeometricMean()));
    list.add(Util.formatArg("standard deviation",getStandardDeviation()));
    list.add(Util.formatArg("variance",getVariance()));
    return Util.formatObjectToString(BasicNumericDataCollectorAction.class,list);
  }

Initial URL

                                

Initial Description

                                

Initial Title
Usage example of the convenience methods for toString()

Initial Tags
java

Initial Language
Java