Example #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj is null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            FieldValueFilter other = (FieldValueFilter)obj;

            if (field is null)
            {
                if (other.field != null)
                {
                    return(false);
                }
            }
            else if (!field.Equals(other.field, StringComparison.Ordinal))
            {
                return(false);
            }
            if (negate != other.negate)
            {
                return(false);
            }
            return(true);
        }
Example #2
0
 public FieldCacheDocIdSetAnonymousInnerClassHelper2(FieldValueFilter outerInstance, int maxDoc, IBits acceptDocs, IBits docsWithField)
     : base(maxDoc, acceptDocs)
 {
     this.outerInstance = outerInstance;
     this.docsWithField = docsWithField;
 }