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