operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainStatus.java
public DomainStatus addCondition(DomainCondition newCondition) {
    if (conditions.contains(newCondition)) {
      return this;
    }

    conditions = conditions.stream().filter(c -> preserve(c, newCondition.getType())).collect(Collectors.toList());

    conditions.add(newCondition);
    reason = newCondition.getStatusReason();
    message = newCondition.getStatusMessage();
    return this;
  }
/**
   * Adds a condition to the status, replacing any existing conditions with the same type, and removing other
   * conditions according to the domain rules.
   *
   * @param newCondition the condition to add.
   * @return this object.
   */
Adds a condition to the status, replacing any existing conditions with the same type, and removing other
conditions according to the domain rules.

@param newCondition the condition to add.
@return this object.
Adds a condition to the status replacing any existing conditions with the same type and removing other conditions according to the domain rules . @param newCondition the condition to add . @return this object .
public DomainStatus addCondition(DomainCondition newCondition) {
    if (conditions.contains(newCondition)) {
      return this;
    }
    conditions = conditions.stream().filter(c -> preserve(c, newCondition.getType())).collect(Collectors.toList());
    conditions.add(newCondition);
    reason = newCondition.getStatusReason();
    message = newCondition.getStatusMessage();
    return this;
  }
public DomainStatus addCondition ( DomainCondition newCondition ) { if ( conditions . contains ( newCondition ) ) { return this ; } conditions = conditions . stream ( ) . filter ( c -> preserve ( c , newCondition . getType ( ) ) ) . collect ( Collectors . toList ( ) ) ; conditions . add ( newCondition ) ; reason = newCondition . getStatusReason ( ) ; message = newCondition . getStatusMessage ( ) ; return this ; }
Adds a condition to the status, replacing any existing conditions with the same type, and removing other
 conditions according to the domain rules.
Adds a condition to the status replacing any existing conditions with the same type and removing other conditions according to the domain rules .