Skip to content

MergingDocument should override the equals method #3735

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions