DictionaryADT.java 655 B

12345678910111213141516171819202122
  1. /**
  2. * Author: Jonathan Landrum
  3. *
  4. * Defines the interface to a Dictionary data structure
  5. */
  6. public interface DictionaryADT<T> {
  7. /**
  8. * findEntry:
  9. * Returns type Object. Searches for specified element in the dictionary.
  10. */
  11. public String findEntry (T key);
  12. /**
  13. * insertEntry:
  14. * Returns void. Inserts the specified element with the specified key into the dictionary.
  15. */
  16. public void insertEntry (T key, T element);
  17. /**
  18. * removeEntry:
  19. * Returns type Object. Searches for and removes the specified element from the dictionary, and returns its value.
  20. */
  21. public String removeEntry (T key);
  22. }