Baum\Node::isLeaf PHP 메소드

isLeaf() 공개 메소드

Returns true if this is a leaf node (end of a branch).
public isLeaf ( ) : boolean
리턴 boolean
    public function isLeaf()
    {
        return $this->exists && $this->getRight() - $this->getLeft() == 1;
    }