/** * The format of the histogram is an unordered list of string and the counts * of the number of times it has been seen. * * @return the resultant histogram * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder buf = new StringBuilder(); for (Map.Entry<String, Counter> entry : hist.entrySet()) { buf.append(entry.getKey()); buf.append('\t'); buf.append(entry.getValue().toString()); buf.append('\n'); } return buf.toString(); }