UnorderedListADT.java 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * UnorderedListADT defines the interface to an unordered list collection.
  3. * Elements are stored in any order the user desires.
  4. *
  5. * @author Dr. Lewis
  6. * @author Dr. Chase
  7. * @version 1.0, 08/13/08
  8. */
  9. public interface UnorderedListADT<T> extends ListADT<T>
  10. {
  11. /**
  12. * Adds the specified element to the front of this list.
  13. *
  14. * @param element the element to be added to the front of this list
  15. */
  16. public void addToFront (T element);
  17. /**
  18. * Adds the specified element to the rear of this list.
  19. *
  20. * @param element the element to be added to the rear of this list
  21. */
  22. public void addToRear (T element);
  23. /**
  24. * Adds the specified element after the specified target.
  25. *
  26. * @param element the element to be added after the target
  27. * @param target the target is the item that the element will be added
  28. * after
  29. */
  30. public void addAfter (T element, T target);
  31. }