vert-x3 / vertx-mongo-client

Mongo Client for Eclipse Vert.x
http://vertx.io
Apache License 2.0
58 stars 98 forks source link

CollationOptions improvements and clean up #272

Closed DarwinsBuddy closed 2 years ago

DarwinsBuddy commented 2 years ago

Motivation:

While using the newly itnroduced collation options in 4.2.3, I realized that some setters in data object classes are non-compliant to the builder-pattern, which is widely used in the project and also nice to use imho. It's merely syntactical sugar, still, I thought I'd provide a fix for it.

Also add an empty json object fallback on non-provided collation options within IndexOptions

Seemingly, I made a mistake while integrating requested changes of my last PR (#266) in the equals method of CollationOptions. Should be fixed with this commit (alternate is not compared properly)