AIMA.Core.Logic.FOL.Parsing.AST.ConnectedSentence.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object o ) : bool
o Object
return bool
        public override bool Equals(Object o)
        {

            if (this == o)
            {
                return true;
            }
            if ((o == null) || !(o is ConnectedSentence))
            {
                return false;
            }
            ConnectedSentence cs = (ConnectedSentence)o;
            return cs.getConnector().Equals(getConnector())
                    && cs.getFirst().Equals(getFirst())
                    && cs.getSecond().Equals(getSecond());
        }