コード例 #1
0
ファイル: EditServer.java プロジェクト: ReaQta/ldapsdk
  /**
   * 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());
  }
コード例 #2
0
ファイル: MonitorEntry.java プロジェクト: ReaQta/ldapsdk
  /**
   * 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(')');
  }
コード例 #3
0
ファイル: MonitorEntry.java プロジェクト: ReaQta/ldapsdk
 /**
  * Retrieves a string representation of this monitor entry.
  *
  * @return A string representation of this monitor entry.
  */
 @Override()
 public final String toString() {
   final StringBuilder buffer = new StringBuilder();
   toString(buffer);
   return buffer.toString();
 }