Example usage for com.mongodb.client.model Collation builder

List of usage examples for com.mongodb.client.model Collation builder

Introduction

In this page you can find the example usage for com.mongodb.client.model Collation builder.

Prototype

public static Builder builder(final Collation options) 

Source Link

Document

Convenience method to create a from an existing Collation .

Usage

From source file:org.mongodb.morphia.DeleteOptions.java

License:Apache License

/**
 * Copies this instance to a new one./*  www  . j  av  a 2 s  .  c o  m*/
 *
 * @return the new instance
 */
public DeleteOptions copy() {
    DeleteOptions deleteOptions = new DeleteOptions().writeConcern(getWriteConcern());

    if (getCollation() != null) {
        deleteOptions.collation(Collation.builder(getCollation()).build());
    }

    return deleteOptions;
}