public boolean deepEquals()

in sdmx30-infomodel/src/main/java/com/epam/jsdmx/infomodel/sdmx30/MaintainableArtefactImpl.java [122:141]


    public boolean deepEquals(Object o, Set<DeepEqualsExclusion> exclusions) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MaintainableArtefact)) {
            return false;
        }
        MaintainableArtefact that = (MaintainableArtefact) o;
        var result = Objects.equals(getId(), that.getId())
            && Objects.equals(getVersion(), that.getVersion())
            && isExternalReference() == that.isExternalReference()
            && Objects.equals(getMaintainer(), that.getMaintainer())
            && Objects.equals(getServiceUrl(), that.getServiceUrl())
            && Objects.equals(isStub(), that.isStub())
            && Objects.equals(getStructureUrl(), that.getStructureUrl());
        if (!exclusions.contains(MaintainableExclusions.ANNOTATIONS)) {
            result = result && Objects.equals(getAnnotations(), that.getAnnotations());
        }
        return result;
    }