Class CheckedHashSet<E>

Type Parameters:
E - The type of elements in the set.
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>, Cloneable, CheckedCollection<E>

public class CheckedHashSet<E> extends LinkedHashSet<E> implements CheckedCollection<E>, Cloneable
A checked and synchronized Set. Type checks are performed at run-time in addition of compile-time checks. The synchronization lock can be modified at runtime by overriding the getLock() method.

This class is similar to using the wrappers provided in Collections, minus the cost of indirection levels and with the addition of overrideable methods.

Since:
2.1
Author:
Jody Garnett (Refractions Research), Martin Desruisseaux (IRD)
See Also: