public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } if (!base.Equals(o)) { return(false); } EnumFieldSource that = (EnumFieldSource)o; if (!enumIntToStringMap.Equals(that.enumIntToStringMap)) { return(false); } if (!enumStringToIntMap.Equals(that.enumStringToIntMap)) { return(false); } if (!parser.Equals(that.parser)) { return(false); } return(true); }
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } if (!base.Equals(o)) { return(false); } EnumFieldSource that = (EnumFieldSource)o; // LUCENENET TODO: Make an EquatableDictionary so we can use Equatable.Wrap() here ? // LUCENENET specific: must use Collections.Equals() to ensure values // contained within the dictionaries are compared for equality if (!Collections.Equals(enumIntToStringMap, that.enumIntToStringMap)) { return(false); } if (!Collections.Equals(enumStringToIntMap, that.enumStringToIntMap)) { return(false); } if (!parser.Equals(that.parser)) { return(false); } return(true); }
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } if (!base.Equals(o)) { return(false); } EnumFieldSource that = (EnumFieldSource)o; // LUCENENET specific: must use DictionaryEqualityComparer.Equals() to ensure values // contained within the dictionaries are compared for equality if (!JCG.DictionaryEqualityComparer <int?, string> .Default.Equals(enumIntToStringMap, that.enumIntToStringMap)) { return(false); } if (!JCG.DictionaryEqualityComparer <string, int?> .Default.Equals(enumStringToIntMap, that.enumStringToIntMap)) { return(false); } if (!parser.Equals(that.parser)) { return(false); } return(true); }
public IntDocValuesAnonymousInnerClassHelper(EnumFieldSource outerInstance, EnumFieldSource @this, FieldCache.Ints arr, Bits valid) : base(@this) { this.outerInstance = outerInstance; this.arr = arr; this.valid = valid; val = new MutableValueInt(); }
public Int32DocValuesAnonymousClass(EnumFieldSource outerInstance, EnumFieldSource @this, FieldCache.Int32s arr, IBits valid) : base(@this) { this.outerInstance = outerInstance; this.arr = arr; this.valid = valid; //val = new MutableValueInt32(); // LUCENENET: Never read }
public ValueSourceScorerAnonymousInnerClassHelper(IntDocValuesAnonymousInnerClassHelper outerInstance, IndexReader reader, EnumFieldSource @this, int ll, int uu) : base(reader, outerInstance) { this.outerInstance = outerInstance; this.ll = ll; this.uu = uu; }