public boolean isSingle() {
    // assume simplified
    if ((positiveQueryList.size() == 1) && (negativeQueryList.size() == 0)) {
      return true;
    } else if ((positiveQueryList.size() == 0)
        && (negativeQueryList.size() == 1)) {
      return true;
    }
    return false;
  }
public boolean isSingle ( ) { if ( ( positiveQueryList . size ( ) == 1 ) && ( negativeQueryList . size ( ) == 0 ) ) { return true ; } else if ( ( positiveQueryList . size ( ) == 0 ) && ( negativeQueryList . size ( ) == 1 ) ) { return true ; } return false ; }
Checks if is single.

@return true, if is single