Class AnnotatedTypeSet<E extends AnnotatedType>

java.lang.Object
io.leangen.geantyref.AnnotatedTypeSet<E>
Type Parameters:
E - the type of the elements maintained by this set
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class AnnotatedTypeSet<E extends AnnotatedType> extends Object implements Set<E>
A Set implementation suited for maintaining AnnotatedType elements. The standard sets do not usually suffice as AnnotatedType implements neither equals nor hashCode. This implementation overcomes that limitation by transparently turning each AnnotatedType into the canonical form using GenericTypeReflector.toCanonical(AnnotatedType). By default, AnnotatedTypeSet instances are backed by a HashSet, but any set can be used instead. The guarantees of AnnotatedTypeSet are then the same as of the set it is backed by.
See Also: