@ Deprecated public static ReplaceOptions createReplaceOptions ( final UpdateOptions updateOptions ) { notNull ( "updateOptions" , updateOptions ) ; List < ? extends Bson > arrayFilters = updateOptions . getArrayFilters ( ) ; isTrue ( "ArrayFilters should be empty." , arrayFilters == null || arrayFilters . isEmpty ( ) ) ; return new ReplaceOptions ( ) . bypassDocumentValidation ( updateOptions . getBypassDocumentValidation ( ) ) . collation ( updateOptions . getCollation ( ) ) . upsert ( updateOptions . isUpsert ( ) ) ; }
Creates replace options from updateOptions .