Ejemplo n.º 1
0
 @Override
 public String toString() {
   StringBuilder buffer = new StringBuilder();
   buffer.append("PONG: ").append(pingEntity.getContact()).append("\n");
   Contact[] contacts = nodeEntity.getContacts();
   buffer.append("CONTACTS ").append(contacts.length).append("\n");
   for (Contact contact : contacts) {
     buffer.append(" ").append(contact);
   }
   return buffer.toString();
 }