public boolean equals()

in maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/datamodel/ParameterAnnotationContent.java [173:212]


    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ParameterAnnotationContent)) {
            return false;
        }

        ParameterAnnotationContent that = (ParameterAnnotationContent) o;

        if (readonly != that.readonly) {
            return false;
        }
        if (required != that.required) {
            return false;
        }

        if (annotationOnMethod != that.annotationOnMethod) {
            return false;
        }

        if (getFieldName() != null ? !getFieldName().equals(that.getFieldName()) : that.getFieldName() != null) {
            return false;
        }

        if (getClassName() != null ? !getClassName().equals(that.getClassName()) : that.getClassName() != null) {
            return false;
        }

        if (!Objects.equals(typeParameters, that.typeParameters)) {
            return false;
        }
        if (!Objects.equals(alias, that.alias)) {
            return false;
        }
        if (!Objects.equals(defaultValue, that.defaultValue)) {
            return false;
        }
        return Objects.equals(property, that.property);
    }