private boolean checkUpdated(FCEndpoint existing,FCEndpoint current){
  boolean updated=false;
  if (existing.getInactive() == true) {
    existing.setInactive(false);
    updated=true;
  }
  if (checkAttributeChanged(existing.getRemotePortName(),current.getRemotePortName())) {
    existing.setRemotePortName(current.getRemotePortName());
    updated=true;
  }
  if (checkAttributeChanged(existing.getRemoteNodeName(),current.getRemoteNodeName())) {
    existing.setRemoteNodeName(current.getRemoteNodeName());
    updated=true;
  }
  if (checkAttributeChanged(existing.getRemotePortAlias(),current.getRemotePortAlias())) {
    existing.setRemotePortAlias(current.getRemotePortAlias() == null ? "" : current.getRemotePortAlias());
    updated=true;
  }
  if (checkAttributeChanged(existing.getFabricId(),current.getFabricId())) {
    existing.setFabricId(current.getFabricId());
    updated=true;
  }
  if (checkAttributeChanged(existing.getFcid(),current.getFcid())) {
    existing.setFcid(current.getFcid());
    updated=true;
  }
  if (checkAttributeChanged(existing.getSwitchInterface(),current.getSwitchInterface())) {
    existing.setSwitchInterface(current.getSwitchInterface());
    updated=true;
  }
  if (checkAttributeChanged(existing.getSwitchName(),current.getSwitchName())) {
    existing.setSwitchName(current.getSwitchName());
    updated=true;
  }
  if (checkAttributeChanged(existing.getSwitchPortName(),current.getSwitchPortName())) {
    existing.setSwitchPortName(current.getSwitchPortName());
    updated=true;
  }
  if (checkAttributeChanged(existing.getFabricWwn(),current.getFabricWwn())) {
    existing.setFabricWwn(current.getFabricWwn());
    updated=true;
  }
  return updated;
}

private boolean checkUpdated ( FCEndpoint existing , FCEndpoint current ) { boolean updated = false ; if ( existing . getInactive ( ) == true ) { existing . setInactive ( false ) ; updated = true ; } if ( checkAttributeChanged ( existing . getRemotePortName ( ) , current . getRemotePortName ( ) ) ) { existing . setRemotePortName ( current . getRemotePortName ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getRemoteNodeName ( ) , current . getRemoteNodeName ( ) ) ) { existing . setRemoteNodeName ( current . getRemoteNodeName ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getRemotePortAlias ( ) , current . getRemotePortAlias ( ) ) ) { existing . setRemotePortAlias ( current . getRemotePortAlias ( ) == null ? "" : current . getRemotePortAlias ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getFabricId ( ) , current . getFabricId ( ) ) ) { existing . setFabricId ( current . getFabricId ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getFcid ( ) , current . getFcid ( ) ) ) { existing . setFcid ( current . getFcid ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getSwitchInterface ( ) , current . getSwitchInterface ( ) ) ) { existing . setSwitchInterface ( current . getSwitchInterface ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getSwitchName ( ) , current . getSwitchName ( ) ) ) { existing . setSwitchName ( current . getSwitchName ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getSwitchPortName ( ) , current . getSwitchPortName ( ) ) ) { existing . setSwitchPortName ( current . getSwitchPortName ( ) ) ; updated = true ; } if ( checkAttributeChanged ( existing . getFabricWwn ( ) , current . getFabricWwn ( ) ) ) { existing . setFabricWwn ( current . getFabricWwn ( ) ) ; updated = true ; } return updated ; }
returns true if any fields of significance has been modified .
