Class MappedSet<E,F>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.jhotdraw8.collection.mapped.MappedSet<E,F>
Type Parameters:
E - the mapped element type
F - the original element type
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public final class MappedSet<E,F> extends AbstractSet<E>
Maps a Set to a different element type.

The underlying Set is referenced - not copied.

Author:
Werner Randelshofer