public boolean equalSignature(Assignment obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (label == null) {
    if (obj.label != null)     return false;
  }
 else   if (!label.equals(obj.label))   return false;
  return (params.length == obj.params.length);
}

public boolean equalSignature ( Assignment obj ) { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( label == null ) { if ( obj . label != null ) return false ; } else if ( ! label . equals ( obj . label ) ) return false ; return ( params . length == obj . params . length ) ; }
compares if the signature ( label and the number of parameters matches )
