synchronized public String toString(){
  final StringBuilder sb=new StringBuilder();
  sb.append("{");
  final Iterator<IHistoryEntry<T>> itr=iterator();
  int n=0;
  while (itr.hasNext()) {
    final IHistoryEntry<T> entry=itr.next();
    sb.append("(" + entry.getValue() + ","+ entry.getCount()+ ", "+ new Date(entry.lastModified())+ ")");
    if (itr.hasNext())     sb.append(",");
    n++;
  }
  final T average=getAverage();
  sb.append("},average=" + average + ",n="+ n);
  return sb.toString();
}

synchronized public String toString ( ) { final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "{" ) ; final Iterator < IHistoryEntry < T > > itr = iterator ( ) ; int n = 0 ; while ( itr . hasNext ( ) ) { final IHistoryEntry < T > entry = itr . next ( ) ; sb . append ( "(" + entry . getValue ( ) + "," + entry . getCount ( ) + ", " + new Date ( entry . lastModified ( ) ) + ")" ) ; if ( itr . hasNext ( ) ) sb . append ( "," ) ; n ++ ; } final T average = getAverage ( ) ; sb . append ( "},average=" + average + ",n=" + n ) ; return sb . toString ( ) ; }
return a representation of a snapshot of the samples in buffer .
