public synchronized boolean hasAlert(Alert alert){
  if (alerts == null) {
    return false;
  }
  return alerts.contains(alert);
}

public synchronized boolean hasAlert ( Alert alert ) { if ( alerts == null ) { return false ; } return alerts . contains ( alert ) ; }
tells whether or not this history reference has the given alert .
