/*---------------------------------

  BST_int_Iterator.java

  (P) 1998 Laurentiu Cristofor

  implementation
  of an iterator for a
  binary search tree 
  that holds integers

-----------------------------------*/

class BST_int_Iterator
{
  private BST_Iterator bst_iter;

  public BST_int_Iterator(BST_Iterator iter)
  {
    bst_iter = iter;
  }

  public boolean atEnd()
  {
    return bst_iter.atEnd();
  }

  public void next()
  {
    bst_iter.next();
  }
  
  public int current() throws NullPointerException
  {
    return ((Integer)bst_iter.current()).intValue();
  }
}

