public boolean isAccepted(Question q){
  if (excludeQuestions != null && excludeQuestions.contains(";" + q.getQuestionId() + ";")) {
    return false;
  }
  if (filterDupes) {
    if (!q.isPossibleDuplicate()) {
      return false;
    }
  }
  if (closeVotes != null && closeVotes.isFilterActive()) {
    if (!closeVotes.inRange(q.getCloseVoteCount())) {
      return false;
    }
  }
  if (scores != null && scores.isFilterActive()) {
    if (!scores.inRange(q.getScore())) {
      return false;
    }
  }
  if (answerType != null) {
switch (answerType) {
case CLICK_FROM_ROOMBA:
      return q.isAlmostRoomba();
case HAS_ANSWER:
    return q.getAnswerCount() > 0;
case HAS_ACCEPTED_ANSWER:
  return q.isAnswerAccepted();
case HAS_NO_ACCEPTED_ANSWER:
return !q.isAnswerAccepted();
case HAS_NO_ANSWER:
return q.getAnswerCount() <= 0;
case NO_ROOMBA:
return !q.isRoomba();
case NO_FILTER:
return true;
}
}
return true;
}

public boolean isAccepted ( Question q ) { if ( excludeQuestions != null && excludeQuestions . contains ( ";" + q . getQuestionId ( ) + ";" ) ) { return false ; } if ( filterDupes ) { if ( ! q . isPossibleDuplicate ( ) ) { return false ; } } if ( closeVotes != null && closeVotes . isFilterActive ( ) ) { if ( ! closeVotes . inRange ( q . getCloseVoteCount ( ) ) ) { return false ; } } if ( scores != null && scores . isFilterActive ( ) ) { if ( ! scores . inRange ( q . getScore ( ) ) ) { return false ; } } if ( answerType != null ) { switch ( answerType ) { case CLICK_FROM_ROOMBA : return q . isAlmostRoomba ( ) ; case HAS_ANSWER : return q . getAnswerCount ( ) > 0 ; case HAS_ACCEPTED_ANSWER : return q . isAnswerAccepted ( ) ; case HAS_NO_ACCEPTED_ANSWER : return ! q . isAnswerAccepted ( ) ; case HAS_NO_ANSWER : return q . getAnswerCount ( ) <= 0 ; case NO_ROOMBA : return ! q . isRoomba ( ) ; case NO_FILTER : return true ; } } return true ; }
check if question is accpeted by filter note : day filter is already done on api call
