/** * Retrieves a string representation of the contents of the provided list. * * @param l The list from which to take the elements. * @return A string representation of the contents of the provided list. */ private static String listToString(final List<String> l) { logEnter(LOG_TAG, "listToString", l); final StringBuilder buffer = new StringBuilder(); for (final String s : l) { buffer.append(EOL); buffer.append(EOL); buffer.append("- "); buffer.append(s); } return logReturn(LOG_TAG, "listToString", buffer.toString()); }
/** * Appends a string representation of this monitor entry to the provided buffer. * * @param buffer The buffer to which the information should be appended. */ public final void toString(final StringBuilder buffer) { buffer.append("MonitorEntry(dn='"); buffer.append(entry.getDN()); buffer.append("', monitorClass='"); buffer.append(monitorClass); buffer.append('\''); final Iterator<MonitorAttribute> iterator = getMonitorAttributes().values().iterator(); while (iterator.hasNext()) { buffer.append(iterator.next()); if (iterator.hasNext()) { buffer.append(", "); } } buffer.append(')'); }