code: void setNonNumericalRule(NFRule rule) {
          long baseValue = rule.getBaseValue();
          if (baseValue == NFRule.NEGATIVE_NUMBER_RULE) {
              nonNumericalRules[NFRuleSet.NEGATIVE_RULE_INDEX] = rule;
          }
          else if (baseValue == NFRule.IMPROPER_FRACTION_RULE) {
              setBestFractionRule(NFRuleSet.IMPROPER_FRACTION_RULE_INDEX, rule, true);
          }
          else if (baseValue == NFRule.PROPER_FRACTION_RULE) {
              setBestFractionRule(NFRuleSet.PROPER_FRACTION_RULE_INDEX, rule, true);
          }
          else if (baseValue == NFRule.MASTER_RULE) {
              setBestFractionRule(NFRuleSet.MASTER_RULE_INDEX, rule, true);
          }
          else if (baseValue == NFRule.INFINITY_RULE) {
              nonNumericalRules[NFRuleSet.INFINITY_RULE_INDEX] = rule;
          }
          else if (baseValue == NFRule.NAN_RULE) {
              nonNumericalRules[NFRuleSet.NAN_RULE_INDEX] = rule;
          }
      }
docs: Set one of the non-numerical rules.
  @param rule The rule to set.