public boolean isFull(){
  if (maxSize > 0 && notifications.size() >= maxSize) {
    return true;
  }
  return false;
}

public boolean isFull ( ) { if ( maxSize > 0 && notifications . size ( ) >= maxSize ) { return true ; } return false ; }
check whether this matcher has reached " max - size " or not .
