Class UnionClassSet<E>

All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class UnionClassSet<E> extends AbstractSet<E>
A union set that assumes objects of different classes are not equal. It never does any combining.

The following assumptions are made:

  1. All elements of the added sets are of the same exact class
  2. Objects of different classes are not equal.
  3. No set will contain null
  4. A set for a specific class may only be added once.
  5. Sets that have been added do not change after being added.
  6. Only sets will be added.
  7. Nothing will be removed (except clear is supported).
AO Industries, Inc.