Code example for Set

Methods: equals

0
        } else if (!configuration.equals(other.configuration))
            return false; 
        if (qualifiers == null) {
            if (other.qualifiers != null)
                return false; 
        } else if (!qualifiers.equals(other.qualifiers))
            return false; 
        return true; 
    } 
 
    public GenericIdentifier(Set<Annotation> qualifiers, Annotation configuration) {
        this.qualifiers = qualifiers;
        this.configuration = configuration;
    } 
 
    public Set<Annotation> getQualifiers() {
        return qualifiers;
    } 
 
    public Class<? extends Annotation> getAnnotationType() {
        return configuration.annotationType();