public String getNotes() { String toRet = null; if (notes != null && !"".equals(notes)) { toRet = notes; } // Only add the grep notes if grep was actually used if (grep()) { toRet = notes == null ? "" : notes; toRet += "\n" + grepOption.toString() + " grepped for " + grep; } return toRet; }
public String getDebugString() { StringBuilder builder = new StringBuilder(); builder.append("Command information:"); builder.append("\nkernelLog: " + kernelLog); builder.append("\nlastKernelLog: " + lastKernelLog); builder.append("\nmainLog: " + mainLog); builder.append("\nmodemLog: " + modemLog); builder.append("\ngrepOption: " + grepOption.toString()); builder.append("\ngrep: " + grep); builder.append("\nfileAppendText: " + appendText); builder.append("\nnotes: " + notes); return builder.toString(); }