equals

Compares two BsonDocument to verify whether they are equal according to the rules documented in BsonDocument.

This method may be used in BsonDocument implementations as a default implementation.