/** * Is the current position below a leaf of the tree?. * * @timing O(1) */ public boolean below() { return cur == null && (parent != null || tree.isEmpty()); }
/** * Return string representation of the current item. * * @timing O(1) */ public String toString() { return tree.toString(); }