Skip to content

MergingDocument should override the equals method #3735

@CoolLoong

Description

@CoolLoong

Is your feature request related to a problem? Please describe.
MergingDocument should override the equals method

Describe the solution you'd like
add following code to MergingDocument

        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            } else if (o instanceof Document document) {
                return this.entrySet().equals(document.entrySet());
            } else {
                return false;
            }
        }

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions