public void update(KerberosPrincipalDescriptor updates) {
    if (updates != null) {
      String updatedValue;

      updatedValue = updates.getValue();
      if (updatedValue != null) {
        setValue(updatedValue);
      }

      KerberosPrincipalType updatedType = updates.getType();
      if (updatedType != null) {
        setType(updatedType);
      }

      updatedValue = updates.getConfiguration();
      if (updatedValue != null) {
        setConfiguration(updatedValue);
      }

      updatedValue = updates.getLocalUsername();
      if (updatedValue != null) {
        setLocalUsername(updatedValue);
      }
    }
  }
Updates this KerberosPrincipalDescriptor with data from another KerberosPrincipalDescriptor
<p/>
Properties will be updated if the relevant updated values are not null.

@param updates the KerberosPrincipalDescriptor containing the updated values
ambari-server/src/main/java/org/apache/ambari/server/state/kerberos/KerberosPrincipalDescriptor.java