code: public Iterator<RemoteRosterEntry> getRosterEntries() {
          synchronized (remoteRosterEntries) {
              List<RemoteRosterEntry> entries = Collections.unmodifiableList(new ArrayList<>(remoteRosterEntries));
              return entries.iterator();
          }
      }
docs: Returns an Iterator for the roster entries in the packet.
  
  @return an Iterator for the roster entries in the packet.