Class DisjointSortedSetsUnion<E>

java.lang.Object
org.bzdev.util.DisjointSortedSetsUnion<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class DisjointSortedSetsUnion<E> extends Object implements Set<E>
Set implementation backed by a collection of disjoint sets. The set is immutable in that elements cannot be added explicitly - only the sets it backs can be modified . These sets must be disjoint for the iterator to not contain duplicate entries and for size() and hashCode() to return the correct values.