Class UnsortedSet<E>
java.lang.Object
AbstractSet<E>
UnsortedSet<E>
- All Implemented Interfaces:
- ISet<E>, Iterable<E>
public class UnsortedSet<E>
- extends AbstractSet<E>
A simple implementation of an ISet.
Elements are not in any particular order.
Students are to implement methods that
were not implemented in AbstractSet and override
methods that can be done more efficiently.
An ArrayList must be used as the internal storage container.
Methods inherited from interface ISet |
add, addAll, clear, contains, containsAll, difference, equals, intersection, iterator, remove, size, union |
UnsortedSet
public UnsortedSet()