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

  BS_Tree_int.java

  (P) 1998 Laurentiu Cristofor

  implementation
  of a homogeneous
  generic binary search tree
  for integers

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

class BS_Tree_int
{
  BS_Tree bst;
  
  // Public methods
  
  public BS_Tree_int()
  {
    bst = new BS_Tree(new Comparison_Integer());
  }
  
  public int size()
  {
    return bst.size();
  }

  public boolean empty()
  {
    return bst.empty();
  }

  public void insert(int value)
  {
    bst.insert(new Integer(value));
  }

  public boolean remove(int value)
  {
    return bst.remove(new Integer(value));
  }

  public BST_int_Iterator find(int value)
  {
    return new BST_int_Iterator(bst.find(new Integer(value)));
  }

  public BST_int_Iterator iterator()
  {
    return new BST_int_Iterator(bst.iterator());
  }
}
