Esempio n. 1
0
        public override object Clone()
        {
            SpanFirstQuery spanFirstQuery = new SpanFirstQuery((SpanQuery)m_match.Clone(), m_end);

            spanFirstQuery.Boost = Boost;
            return(spanFirstQuery);
        }
Esempio n. 2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is SpanFirstQuery))
            {
                return(false);
            }

            SpanFirstQuery other = (SpanFirstQuery)o;

            return(this.m_end == other.m_end && this.m_match.Equals(other.m_match) && this.Boost == other.Boost);
        }
Esempio n. 3
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is SpanFirstQuery))
            {
                return(false);
            }

            SpanFirstQuery other = (SpanFirstQuery)o;

            // LUCENENET specific - compare bits rather than using equality operators to prevent these comparisons from failing in x86 in .NET Framework with optimizations enabled
            return(this.m_end == other.m_end &&
                   this.m_match.Equals(other.m_match) &&
                   NumericUtils.SingleToSortableInt32(this.Boost) == NumericUtils.SingleToSortableInt32(other.Boost));
        }