/** * Returns a string representation of this object. */ @Override public String toString() { StringBuffer result = new StringBuffer(); result.append(name) .append(", ") .append(id) .append(", ") .append(type.getName()) .append(": \"") .append(archive.formatTimeMillis(getFirstTimeMillis())) .append('\"'); if (!active) { result.append(" inactive"); } result.append(" samples="+ getSampleCount()); return result.toString(); } /**
/** * Returns a string representation of this object. */ @Override public String toString() { StringBuffer result = new StringBuffer(); result.append(name) .append(", ") .append(id) .append(", ") .append(type.getName()) .append(": \"") .append(archive.formatTimeMillis(getFirstTimeMillis())) .append('\"'); if (!active) { result.append(" inactive"); } result.append(" samples="+ getSampleCount()); return result.toString(); } /**
protected void dump(PrintWriter stream) { stream.println(name + ":" + " file=" + getArchive().getFile() + " id=" + id + (active? "" : " deleted") + " start=" + archive.formatTimeMillis(getFirstTimeMillis())); for (int i=0; i < values.length; i++) { values[i].dump(stream); } }
protected void dump(PrintWriter stream) { stream.println(name + ":" + " file=" + getArchive().getFile() + " id=" + id + (active? "" : " deleted") + " start=" + archive.formatTimeMillis(getFirstTimeMillis())); for (int i=0; i < values.length; i++) { values[i].dump(stream); } }