If the weights array is non-null, it must have identical length to the rules array. Construct a RuleAlternatives object with an array of sub-rules. The weights are set to null . Construct a RuleAlternatives object containing a single sub-rule. The weights array is set to null .
Empty constructor creates zero-length list of alternatives.
Use the setRules method or append method to add alternatives. Each string is used to create a single RuleToken object. If appropriate, an application should parse such strings to produce separate tokens. The phrase list may be zero-length or null. Set the array of alternative sub-rules.