operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainStatus.java
public DomainStatus addCluster(ClusterStatus cluster) {
    synchronized (clusters) {
      for (ListIterator<ClusterStatus> it = clusters.listIterator(); it.hasNext(); ) {
        if (Objects.equals(it.next().getClusterName(), cluster.getClusterName())) {
          it.remove();
        }
      }

      clusters.add(cluster);
      Collections.sort(clusters);
    }
    return this;
  }
/**
   * Add the status for a cluster.
   * @param cluster the status for one cluster
   * @return this object
   */
Add the status for a cluster.
@param cluster the status for one cluster
@return this object
Add the status for a cluster . @param cluster the status for one cluster @return this object
public DomainStatus addCluster(ClusterStatus cluster) {
    synchronized (clusters) {
      for (ListIterator<ClusterStatus> it = clusters.listIterator(); it.hasNext(); ) {
        if (Objects.equals(it.next().getClusterName(), cluster.getClusterName())) {
          it.remove();
        }
      }
      clusters.add(cluster);
      Collections.sort(clusters);
    }
    return this;
  }
public DomainStatus addCluster ( ClusterStatus cluster ) { synchronized ( clusters ) { for ( ListIterator < ClusterStatus > it = clusters . listIterator ( ) ; it . hasNext ( ) ; ) { if ( Objects . equals ( it . next ( ) . getClusterName ( ) , cluster . getClusterName ( ) ) ) { it . remove ( ) ; } } clusters . add ( cluster ) ; Collections . sort ( clusters ) ; } return this ; }
Add the status for a cluster.
Add the status for a cluster .