Exemplo n.º 1
0
        //@Override
        public override bool Equals(System.Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            MultiTermQuery other = (MultiTermQuery)obj;

            if (System.Convert.ToInt32(GetBoost()) != System.Convert.ToInt32(other.GetBoost()))
            {
                return(false);
            }
            if (!rewriteMethod.Equals(other.rewriteMethod))
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            MultiTermQuery other = (MultiTermQuery)obj;

            if (J2N.BitConversion.SingleToInt32Bits(Boost) != J2N.BitConversion.SingleToInt32Bits(other.Boost))
            {
                return(false);
            }
            if (!m_rewriteMethod.Equals(other.m_rewriteMethod))
            {
                return(false);
            }
            return(other.m_field == null ? m_field == null : other.m_field.Equals(m_field, StringComparison.Ordinal));
        }
Exemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            MultiTermQuery other = (MultiTermQuery)obj;

            if (Number.FloatToIntBits(Boost) != Number.FloatToIntBits(other.Boost))
            {
                return(false);
            }
            if (!rewriteMethod.Equals(other.rewriteMethod))
            {
                return(false);
            }
            return(other.field == null ? field == null : other.field.Equals(field));
        }