示例#1
0
  /** {@inheritDoc} */
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof Annotation)) {
      return false;
    }

    Annotation otherAnnotation = (Annotation) other;

    if (!(type.equals(otherAnnotation.type) && (visibility == otherAnnotation.visibility))) {
      return false;
    }

    return elements.equals(otherAnnotation.elements);
  }