@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(labItem.getLabel()).append(", date ").append(getDate().toString(TimeTool.TIMESTAMP)); if (refMale != null) { sb.append(" refm ").append(refMale); } if (refFemale != null) { sb.append(" reff ").append(refFemale); } if (unit != null) { sb.append(" unit ").append(unit); } if (analyseTime != null) { sb.append(" aTime ").append(analyseTime.toString(TimeTool.TIMESTAMP)); } if (observationTime != null) { sb.append(" oTime ").append(observationTime.toString(TimeTool.TIMESTAMP)); } if (transmissionTime != null) { sb.append(" tTime ").append(transmissionTime.toString(TimeTool.TIMESTAMP)); } sb.append(" res ").append(getResult()); return sb.toString(); }
public String getLabel() { StringBuilder sb = new StringBuilder(); sb.append(labItem.getLabel()) .append(", ") .append(getDate().toString(TimeTool.DATE_GER)) .append(": ") .append(getResult()); return sb.toString(); }