Class AVLTree<Key extends Comparable<Key>,Value>

java.lang.Object
dsa.lab07.solutions.BinarySearchTree<Key,Value>
dsa.lab08.solutions.AVLTree<Key,Value>
Type Parameters:
Key - the key type
Value - the value type
All Implemented Interfaces:
Container<MapItem<Key,Value>>, Map<Key,Value>, OrderedMap<Key,Value>, Iterable<MapItem<Key,Value>>

public class AVLTree<Key extends Comparable<Key>,Value> extends BinarySearchTree<Key,Value>
An AVL tree.
  • Constructor Details

    • AVLTree

      public AVLTree()
      Construct an empty AVL tree.
    • AVLTree

      public AVLTree(Iterable<MapItem<Key,Value>> items)
      Construct an AVL tree containing the given items.
      Parameters:
      items - the items
    • AVLTree

      @SafeVarargs public AVLTree(MapItem<Key,Value>... items)
      Construct an AVL tree containing the given items.
      Parameters:
      items - the items
  • Method Details