List of usage examples for com.mongodb.client.model Collation builder
public static Builder builder(final Collation options)
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; }