Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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
 }
Ejemplo n.º 6
0
 public ValueSourceScorerAnonymousInnerClassHelper(IntDocValuesAnonymousInnerClassHelper outerInstance, IndexReader reader, EnumFieldSource @this, int ll, int uu)
     : base(reader, outerInstance)
 {
     this.outerInstance = outerInstance;
     this.ll            = ll;
     this.uu            = uu;
 }
Ejemplo n.º 7
0
 public ValueSourceScorerAnonymousInnerClassHelper(IntDocValuesAnonymousInnerClassHelper outerInstance, IndexReader reader, EnumFieldSource @this, int ll, int uu)
     : base(reader, outerInstance)
 {
     this.outerInstance = outerInstance;
     this.ll = ll;
     this.uu = uu;
 }
Ejemplo n.º 8
0
 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();
 }