@Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    }
    if (obj == null || !getClass().isAssignableFrom(obj.getClass())) {
      return false;
    }
    QualifierDefinition other = (QualifierDefinition)obj;
    return this.annotations.equals(other.annotations);
  }
Definition of a Spring {@link Qualifier @Qualifier}.

original authors Phillip Webb, Stephane Nicoll
@see Definition
spock-spring/src/main/java/org/spockframework/spring/mock/QualifierDefinition.java