- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>
public class VersionedHashSet<E>
extends java.util.HashSet<E>
This is an implementation of the Set interface that keeps track
of its version so that we can tell when it is modified.
Each time an element is added to or removed from the set, the
version is incremented.
This implementation is synchronized so that the version
is consistently updated whenever the set is modified.
- See Also:
- Serialized Form