public synchronized boolean hasAlerts(){
  if (alerts == null) {
    return false;
  }
  return !alerts.isEmpty();
}

public synchronized boolean hasAlerts ( ) { if ( alerts == null ) { return false ; } return ! alerts . isEmpty ( ) ; }
tells whether or not this history reference has alerts .
