Exemplo n.º 1
0
 public Builder()
 {
     FlagSetDeduper = new Deduper <FlagSet>(FlagSet.DefaultComparer);
     FlagSetDeduper.Add(FlagSet.Empty);
     MorphSetDeduper = new Deduper <MorphSet>(MorphSet.DefaultComparer);
     MorphSetDeduper.Add(MorphSet.Empty);
     CharacterConditionGroupDeduper = new Deduper <CharacterConditionGroup>(CharacterConditionGroup.DefaultComparer);
     CharacterConditionGroupDeduper.Add(CharacterConditionGroup.Empty);
     CharacterConditionGroupDeduper.Add(CharacterConditionGroup.AllowAnySingleCharacter);
     StringDeduper = new StringDeduper();
     StringDeduper.Add(string.Empty);
 }
 internal Builder(AffixConfig affix, Deduper <FlagSet> flagSetDeduper, Deduper <MorphSet> morphSet)
 {
     Affix          = affix;
     FlagSetDeduper = flagSetDeduper ?? new Deduper <FlagSet>(FlagSet.DefaultComparer);
     FlagSetDeduper.Add(FlagSet.Empty);
     MorphSetDeduper = morphSet ?? new Deduper <MorphSet>(MorphSet.DefaultComparer);
     MorphSetDeduper.Add(MorphSet.Empty);
     WordEntryDetailDeduper = new Deduper <WordEntryDetail>(EqualityComparer <WordEntryDetail> .Default);
     WordEntryDetailDeduper.Add(WordEntryDetail.Default);
 }