Class JointCollection<E>

java.lang.Object
edu.udel.cis.vsl.sarl.util.JointCollection<E>
Type Parameters:
E - the type of the elements of the collections
All Implemented Interfaces:
Iterable<E>, Collection<E>
Direct Known Subclasses:
JointSet

public class JointCollection<E> extends Object implements Collection<E>

A collection representing the disjoint union of two collections. This collection is immutable: the modification methods will all throw UnsupportedOperationException s.

This collection is backed by the two underlying collections. I.e., changes to the underlying collections will be reflected in this collection.