public FlagSet Dedup(FlagSet values) { #if DEBUG if (values == null) { throw new ArgumentNullException(nameof(values)); } #endif return(FlagSetDeduper.GetEqualOrAdd(values)); }
public FlagSet Dedup(FlagSet values) => FlagSetDeduper.GetEqualOrAdd(values);
public MorphSet Dedup(MorphSet value) => value == null ? null : MorphSetDeduper.GetEqualOrAdd(value);
public FlagSet Dedup(FlagSet value) => value == null ? null : FlagSetDeduper.GetEqualOrAdd(value);
public WordEntryDetail Dedup(WordEntryDetail value) => value == null ? value : WordEntryDetailDeduper.GetEqualOrAdd(value);
public MorphSet Dedup(MorphSet value) => value == null ? value : value.Count == 0 ? MorphSet.Empty : MorphSetDeduper.GetEqualOrAdd(value);
public FlagSet Dedup(FlagSet value) => value == null ? value : value.Count == 0 ? FlagSet.Empty : FlagSetDeduper.GetEqualOrAdd(value);
public CharacterConditionGroup Dedup(CharacterConditionGroup value) => CharacterConditionGroupDeduper.GetEqualOrAdd(value);
public FlagSet TakeArrayForFlagSet(FlagValue[] values) => FlagSetDeduper.GetEqualOrAdd(FlagSet.TakeArray(values));