operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainStatus.java
public DomainStatus addServer(ServerStatus server) {
    synchronized (servers) {
      for (ListIterator<ServerStatus> it = servers.listIterator(); it.hasNext(); ) {
        if (Objects.equals(it.next().getServerName(), server.getServerName())) {
          it.remove();
        }
      }

      servers.add(server);
      Collections.sort(servers);
    }
    return this;
  }
/**
   * Add the status for a server.
   * @param server the status for one server
   * @return this object
   */
Add the status for a server.
@param server the status for one server
@return this object
Add the status for a server . @param server the status for one server @return this object
public DomainStatus addServer(ServerStatus server) {
    synchronized (servers) {
      for (ListIterator<ServerStatus> it = servers.listIterator(); it.hasNext(); ) {
        if (Objects.equals(it.next().getServerName(), server.getServerName())) {
          it.remove();
        }
      }
      servers.add(server);
      Collections.sort(servers);
    }
    return this;
  }
public DomainStatus addServer ( ServerStatus server ) { synchronized ( servers ) { for ( ListIterator < ServerStatus > it = servers . listIterator ( ) ; it . hasNext ( ) ; ) { if ( Objects . equals ( it . next ( ) . getServerName ( ) , server . getServerName ( ) ) ) { it . remove ( ) ; } } servers . add ( server ) ; Collections . sort ( servers ) ; } return this ; }
Add the status for a server.
Add the status for a server .