public interface RedBlackLocator { public int size(); public boolean isEmpty(); public Position find(Object k); // Return position for item (k',e) w/ k=k' public Position insert(Object k, Object o); // Insert (k,o), get back Position public Object remove(Position l); // Remove item at locator l }Your class should have a constructor that accepts a Comparator object and builds an initially-empty red-black tree. Use the comparator object from last programming assignment.
Use the rest of the classes from the solution to the previous
homework for implementing and testing solution to this homework.