public function isEqualTo(Node $node)
    {
        return (($this->getLeftValue() == $node->getLeftValue()) &&
                ($this->getRightValue() == $node->getRightValue()) &&
                (!$this->hasManyRoots() || ($this->getRootValue() == $node->getRootValue())));
    }
public function isEqualTo(Node $node)
    {
        return (($this->getLeftValue() == $node->getLeftValue()) &&
                ($this->getRightValue() == $node->getRightValue()) &&
                (!$this->hasManyRoots() || ($this->getRootValue() == $node->getRootValue())));
    }
public function isEqualTo ( Node $ node ) { return ( ( $ this -> getLeftValue ( ) == $ node -> getLeftValue ( ) ) && ( $ this -> getRightValue ( ) == $ node -> getRightValue ( ) ) && ( ! $ this -> hasManyRoots ( ) || ( $ this -> getRootValue ( ) == $ node -> getRootValue ( ) ) ) ) ; }
determines if this node is equal to the given node

@param Node

@return bool
determines if this node is equal to the given node