private boolean isClear(){
  if (displayed.isEmpty() && queue.isEmpty()) {
    return true;
  }
  return false;
}

private boolean isClear ( ) { if ( displayed . isEmpty ( ) && queue . isEmpty ( ) ) { return true ; } return false ; }
checks if no notifications are displayed or queued .
