common Companion¶ object Companion Functions¶ equals¶ @LowLevelApi fun equals(a: BsonValue, b: BsonValue): Boolean Compares two BsonValue to verify whether they are equal according to the rules documented in BsonValue. This method may be used in BsonValue implementations as a default implementation. hashCode¶ @LowLevelApi fun hashCode(a: BsonValue): Int Generates a hash code for a BsonValue instance, that respects the equality rules documented in BsonValue. This method may be used in BsonValue implementations as a default implementation.