Exemple #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;

            // 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);
        }
Exemple #2
0
 public Int32DocValuesAnonymousInnerClassHelper(EnumFieldSource outerInstance, EnumFieldSource @this, FieldCache.Int32s arr, IBits valid)
     : base(@this)
 {
     this.outerInstance = outerInstance;
     this.arr           = arr;
     this.valid         = valid;
     val = new MutableValueInt32();
 }
Exemple #3
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
 }
Exemple #4
0
 public ValueSourceScorerAnonymousInnerClassHelper(Int32DocValuesAnonymousInnerClassHelper outerInstance, IndexReader reader, EnumFieldSource @this, int ll, int uu)
     : base(reader, outerInstance)
 {
     this.outerInstance = outerInstance;
     this.ll            = ll;
     this.uu            = uu;
 }