This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
/** | |
* Provides an implementation of the Set interface. | |
* A doubly-linked list is used as the underlying data structure. | |
* Although not required by the interface, this linked list is | |
* maintained in ascending natural order. In those methods that | |
* take a LinkedSet as a parameter, this order is used to increase | |
* efficiency. |