/// <summary>
 /// Adds a filledAutofillField to the collection, indexed by all of its hints.
 /// </summary>
 /// <returns>The add.</returns>
 /// <param name="filledAutofillField">Filled autofill field.</param>
 public void Add(FilledAutofillField filledAutofillField)
 {
     string[] autofillHints = filledAutofillField.AutofillHints;
     foreach (string hint in autofillHints)
     {
         HintMap.Add(hint, filledAutofillField);
     }
 }
 public FilledAutofillFieldCollection(Dictionary <string, FilledAutofillField> hintMap, string datasetName = "")
 {
     //recreate hint map making sure we compare case insensitive
     HintMap = BuildHintMap();
     foreach (var p in hintMap)
     {
         HintMap.Add(p.Key, p.Value);
     }
     DatasetName = datasetName;
 }
 /// <summary>
 /// Adds a filledAutofillField to the collection, indexed by all of its hints.
 /// </summary>
 /// <returns>The add.</returns>
 /// <param name="filledAutofillField">Filled autofill field.</param>
 public void Add(FilledAutofillField filledAutofillField)
 {
     foreach (string hint in filledAutofillField.AutofillHints)
     {
         if (AutofillHintsHelper.IsSupportedHint(hint))
         {
             HintMap.Add(hint, filledAutofillField);
         }
         else
         {
             CommonUtil.loge($"Invalid hint: {hint}");
         }
     }
 }
        /**
         * Adds a {@code FilledAutofillField} to the collection, indexed by all of its hints.
         */
        public void Add(FilledAutofillField filledAutofillField)
        {
            if (filledAutofillField == null)
            {
                throw new ArgumentNullException(nameof(filledAutofillField));
            }

            var autofillHints = filledAutofillField.GetAutofillHints();

            foreach (var hint in autofillHints)
            {
                HintMap.Add(hint, filledAutofillField);
            }
        }