code: public void fieldsToString (StringBuilder builder)
      {
          builder.append("hostname=").append(_hostname);
          if (_ports != null && _ports.length > 0) {
              builder.append(", ports=");
              StringUtil.toString(builder, _ports);
          }
          if (_datagramPorts != null && _datagramPorts.length > 0) {
              builder.append(", datagramPorts=");
              StringUtil.toString(builder, _datagramPorts);
          }
          builder.append(", clOid=").append(_cloid);
          builder.append(", connId=").append(_connectionId);
          builder.append(", creds=");
          StringUtil.toString(builder, _creds);
      }
docs: Adds text representation of fields to the builder. The results will be placed between
  brackets by <code>toString</code>.