org.immutables.fixture.SillyStructureWithIdRepository Maven / Gradle / Ivy
Show all versions of value-fixture Show documentation
package org.immutables.fixture;
import com.google.common.annotations.Beta;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Range;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;
import io.atlassian.fugue.Option;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import javax.annotation.CheckReturnValue;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.NotThreadSafe;
import javax.annotation.concurrent.ThreadSafe;
import org.bson.codecs.Encoder;
import org.bson.codecs.configuration.CodecRegistry;
import org.bson.conversions.Bson;
import org.immutables.fixture.subpack.SillySubstructure;
import org.immutables.mongo.concurrent.FluentFuture;
import org.immutables.mongo.repository.Repositories;
import org.immutables.mongo.repository.RepositorySetup;
import org.immutables.mongo.repository.internal.Constraints;
import org.immutables.mongo.repository.internal.Support;
import org.immutables.value.Generated;
/**
* A {@code SillyStructureWithIdRepository} provides type-safe access for storing and retrieving documents
* from the MongoDB collection {@code "sillyStructureWithId"}.
*/
@Generated(from = "SillyStructureWithId", generator = "Repositories")
@SuppressWarnings({"all"})
@ParametersAreNonnullByDefault
@javax.annotation.processing.Generated("org.immutables.processor.ProxyProcessor")
@ThreadSafe
public class SillyStructureWithIdRepository extends Repositories.Repository {
private static final String DOCUMENT_COLLECTION_NAME = "sillyStructureWithId";
private final Serialization serialization;
private final Criteria anyCriteria;
/**
* Constructs a {@link SillyStructureWithId} repository using {@link RepositorySetup configuration}.
* @param configuration The repository configuration
*/
public SillyStructureWithIdRepository(RepositorySetup configuration) {
super(configuration, DOCUMENT_COLLECTION_NAME, SillyStructureWithId.class);
this.serialization = new Serialization(codecRegistry(), fieldNamingStrategy());
this.anyCriteria = new Criteria(this.serialization, Constraints.nilConstraint());
}
/**
* Inserts a single document into the collection.
* @param document The sillyStructureWithId to insert
* @return A future representing the number of inserted documents (1) if WriteConcern allows the insertion.
*/
public FluentFuture insert(SillyStructureWithId document) {
return super.doInsert(ImmutableList.of(document));
}
/**
* Insert documents into the collection.
* @param documents The documents to insert
* @return A future representing the number of inserted documents if WriteConcern allows the insertion.
*/
public FluentFuture insert(Iterable extends SillyStructureWithId> documents) {
return super.doInsert(ImmutableList.copyOf(documents));
}
/**
* Finds all documents. Use the returned {@link Finder} object to complete
* {@link Finder#fetchAll() fetch all} or other operations.
* @return A finder object used to complete operations
*/
@CheckReturnValue
public Finder findAll() {
return find(criteria());
}
/**
* Find documents by the criteria expressed as a JSON string. Use the returned {@link Finder} object to complete
* {@link Finder#fetchAll() fetch} or {@link Finder#fetchFirst() fetch} operations.
* @param jsonCriteria A JSON string for native criteria
* @return A finder object used to complete operations
*/
@CheckReturnValue
public Finder find(String jsonCriteria) {
return new Finder(this, Support.jsonQuery(jsonCriteria));
}
/**
* Find documents by the {@link SillyStructureWithId#id() id} identity attribute. Use the returned {@link Finder} object to complete
* {@link Finder#fetchFirst() fetch} or {@link Finder#fetchAll() fetchAll} read operations.
* You can also use {@link Finder#andModifyFirst() modify}, {@link Finder#andReplaceFirst(SillyStructureWithId) replace}
* or {@link Finder#deleteFirst() delete} operations to update / delete the document.
* @param id The exact {@code id} value
* @return A finder object used to complete operations
*/
@CheckReturnValue
public Finder findById(java.lang.String id) {
return find(criteria().id(id));
}
/**
* Update or insert a document, matched by the identifier value of the 'id' attribute.
* @param document The sillyStructureWithId to upsert
* @return A future representing the of number of inserted documents (1) if WriteConcern allows the insertion.
*/
public FluentFuture upsert(SillyStructureWithId document) {
Criteria byId = criteria().id(document.id());
return super.doUpsert(byId.constraint, document);
}
/**
* Find a document by the given {@link SillyStructureWithIdRepository#criteria() criteria}. Use the returned {@link Finder} object to complete
* {@link Finder#fetchAll() fetch} operations.
* You can also use {@link Finder#andModifyFirst() modify} or {@link Finder#deleteFirst() delete}
* operations to update / delete the document(s).
* @param criteria The search criteria
* @return A finder object used to complete operations
*/
@CheckReturnValue
public Finder find(Criteria criteria) {
return new Finder(this, criteria.constraint);
}
/**
* The finder object used to proceed with find operations via the
* {@link Finder#fetchAll()}, {@link Finder#fetchFirst()}, {@link Finder#andModifyFirst()}, or {@link Finder#deleteFirst()} methods.
* Configure exclusion and sort ordering for results using the family of {@code exclude*()} and {@code orderBy*()} attribute-specific methods.
* @see SillyStructureWithIdRepository#find(Criteria)
*/
@Generated(from = "SillyStructureWithId", generator = "Repositories")
@NotThreadSafe
public static final class Finder extends Repositories.FinderWithDelete {
private final Serialization serialization;
private Finder(SillyStructureWithIdRepository repository, Constraints.ConstraintHost criteria) {
super(repository);
this.criteria = criteria;
this.serialization = repository.serialization;
}
/**
* Order by {@link SillyStructureWithId#id() id} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#id() id} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderById() {
ordering = ordering.equal(serialization.idName, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#id() id} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#id() id} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByIdDesceding() {
ordering = ordering.equal(serialization.idName, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#attr1() attr1} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#attr1() attr1} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByAttr1() {
ordering = ordering.equal(serialization.attr1Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#attr1() attr1} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#attr1() attr1} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByAttr1Desceding() {
ordering = ordering.equal(serialization.attr1Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#flag2() flag2} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#flag2() flag2} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByFlag2() {
ordering = ordering.equal(serialization.flag2Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#flag2() flag2} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#flag2() flag2} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByFlag2Desceding() {
ordering = ordering.equal(serialization.flag2Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#opt3() opt3} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#opt3() opt3} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByOpt3() {
ordering = ordering.equal(serialization.opt3Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#opt3() opt3} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#opt3() opt3} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByOpt3Desceding() {
ordering = ordering.equal(serialization.opt3Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#opt5() opt5} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#opt5() opt5} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByOpt5() {
ordering = ordering.equal(serialization.opt5Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#opt5() opt5} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#opt5() opt5} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByOpt5Desceding() {
ordering = ordering.equal(serialization.opt5Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#very4() very4} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#very4() very4} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByVery4() {
ordering = ordering.equal(serialization.very4Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#very4() very4} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#very4() very4} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByVery4Desceding() {
ordering = ordering.equal(serialization.very4Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#wet5() wet5} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#wet5() wet5} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByWet5() {
ordering = ordering.equal(serialization.wet5Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#wet5() wet5} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#wet5() wet5} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByWet5Desceding() {
ordering = ordering.equal(serialization.wet5Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#subs6() subs6} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#subs6() subs6} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderBySubs6() {
ordering = ordering.equal(serialization.subs6Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#subs6() subs6} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#subs6() subs6} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderBySubs6Desceding() {
ordering = ordering.equal(serialization.subs6Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#nest7() nest7} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#nest7() nest7} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByNest7() {
ordering = ordering.equal(serialization.nest7Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#nest7() nest7} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#nest7() nest7} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByNest7Desceding() {
ordering = ordering.equal(serialization.nest7Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#tup3() tup3} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#tup3() tup3} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByTup3() {
ordering = ordering.equal(serialization.tup3Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#tup3() tup3} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#tup3() tup3} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByTup3Desceding() {
ordering = ordering.equal(serialization.tup3Name, false, -1);
return this;
}
/**
* Order by {@link SillyStructureWithId#int9() int9} in the ascending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#int9() int9} attribute using ascending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByInt9() {
ordering = ordering.equal(serialization.int9Name, false, 1);
return this;
}
/**
* Order by {@link SillyStructureWithId#int9() int9} in the descending direction.
* Specify that the next attribute to sort will be the {@link SillyStructureWithId#int9() int9} attribute using descending order
* in the the chain of comparisons performed to sort results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder orderByInt9Desceding() {
ordering = ordering.equal(serialization.int9Name, false, -1);
return this;
}
/**
* Exclude the {@link SillyStructureWithId#opt3() opt3} attribute from each document in the results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder excludeOpt3() {
exclusion = exclusion.equal(serialization.opt3Name, false, -1);
return this;
}
/**
* Exclude the {@link SillyStructureWithId#opt5() opt5} attribute from each document in the results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder excludeOpt5() {
exclusion = exclusion.equal(serialization.opt5Name, false, -1);
return this;
}
/**
* Exclude the {@link SillyStructureWithId#subs6() subs6} attribute from each document in the results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder excludeSubs6() {
exclusion = exclusion.equal(serialization.subs6Name, false, -1);
return this;
}
/**
* Exclude the {@link SillyStructureWithId#tup3() tup3} attribute from each document in the results.
* @return {@code this} finder for use in a chained invocation
*/
public Finder excludeTup3() {
exclusion = exclusion.equal(serialization.tup3Name, false, -1);
return this;
}
/**
* Turn a find operation into an atomic {@link DBCollection#findAndModify(DBObject, DBObject, DBObject, boolean, DBObject, boolean, boolean) findAndModify}
* operation. Use the family of {@code set*()}, {@code unset*()}, {@code add*()}, {@code remove*()}, {@code put*()}m and {@code init*()}
* (and other attribute-specific) methods to describe the modification.
* @return A modifier object to complete the {@code findAndModify} operation
*/
@CheckReturnValue
public Modifier andModifyFirst() {
return new Modifier((SillyStructureWithIdRepository) repository, criteria, ordering, exclusion);
}
/**
* Used to replace in-place existing version of the document
*/
@CheckReturnValue
public Replacer andReplaceFirst(SillyStructureWithId document) {
return new Replacer((SillyStructureWithIdRepository) repository, document, criteria, ordering);
}
}
/**
* Update the set of {@code "sillyStructureWithId"} documents.
* @param criteria The search criteria for update
* @return An updater object that will be used to complete the update.
*/
@CheckReturnValue
public Updater update(Criteria criteria) {
return new Updater(this, criteria);
}
/**
* {@link #update(Criteria) Given} the criteria updater describes how to perform
* update operations on sets of documents.
*/
@Generated(from = "SillyStructureWithId", generator = "Repositories")
@NotThreadSafe
public static final class Updater extends Repositories.Updater {
private final Serialization serialization;
private Updater(SillyStructureWithIdRepository repository, Criteria criteria) {
super(repository);
this.criteria = criteria.constraint;
this.serialization = repository.serialization;
}
/**
* Specify a new value for the {@code id} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code id} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setId(java.lang.String value) {
setFields = setFields.equal(serialization.idName, false, Support.writable(value));
return this;
}
/**
* Specify an initial value for the {@code id} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code id} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initId(java.lang.String value) {
setOnInsertFields = setOnInsertFields.equal(serialization.idName, false, Support.writable(value));
return this;
}
/**
* Specify a new value for the {@code attr1} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code attr1} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setAttr1(java.lang.String value) {
setFields = setFields.equal(serialization.attr1Name, false, Support.writable(value));
return this;
}
/**
* Specify an initial value for the {@code attr1} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code attr1} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initAttr1(java.lang.String value) {
setOnInsertFields = setOnInsertFields.equal(serialization.attr1Name, false, Support.writable(value));
return this;
}
/**
* Specify a new value for the {@code flag2} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code flag2} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setFlag2(boolean value) {
setFields = setFields.equal(serialization.flag2Name, false, Support.writable(value));
return this;
}
/**
* Specify an initial value for the {@code flag2} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code flag2} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initFlag2(boolean value) {
setOnInsertFields = setOnInsertFields.equal(serialization.flag2Name, false, Support.writable(value));
return this;
}
/**
* Clear the optional {@code opt3} attribute.
*
* Corresponds to the MongoDB {@code $set} operator resetting to {@code null}
* @return {@code this} updater to be used to complete the update operation
*/
public Updater emptyOpt3() {
setFields = setFields.equal(serialization.opt3Name, false, null);
return this;
}
/**
* Specify a new value for the {@code opt3} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code opt3} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setOpt3(int value) {
setFields = setFields.equal(serialization.opt3Name, false, Support.writable(serialization.opt3Encoder, value));
return this;
}
/**
* Specify an initial value for the {@code opt3} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code opt3} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initOpt3(int value) {
setOnInsertFields = setOnInsertFields.equal(serialization.opt3Name, false, Support.writable(serialization.opt3Encoder, value));
return this;
}
/**
* Clear the optional {@code opt5} attribute.
*
* Corresponds to the MongoDB {@code $set} operator resetting to {@code null}
* @return {@code this} updater to be used to complete the update operation
*/
public Updater emptyOpt5() {
setFields = setFields.equal(serialization.opt5Name, false, null);
return this;
}
/**
* Specify a new value for the {@code opt5} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code opt5} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setOpt5(int value) {
setFields = setFields.equal(serialization.opt5Name, false, Support.writable(serialization.opt5Encoder, value));
return this;
}
/**
* Specify an initial value for the {@code opt5} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code opt5} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initOpt5(int value) {
setOnInsertFields = setOnInsertFields.equal(serialization.opt5Name, false, Support.writable(serialization.opt5Encoder, value));
return this;
}
/**
* Specify a new value for the {@code very4} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code very4} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setVery4(long value) {
setFields = setFields.equal(serialization.very4Name, false, Support.writable(value));
return this;
}
/**
* Specify an initial value for the {@code very4} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code very4} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initVery4(long value) {
setOnInsertFields = setOnInsertFields.equal(serialization.very4Name, false, Support.writable(value));
return this;
}
/**
* Specify an increment amount for the {@code very4} attribute. If the document is to inserted
* and no initial value has been provided, then {@code 0} will be the default value and the increment will adjust it.
*
* Corresponds to the MongoDB {@code $inc} operator.
* @param increment An amount by which to increment the {@code very4} attribute (may be negative)
* @return {@code this} updater to be used to complete the update operation
*/
public Updater incrementVery4(long increment) {
incrementFields = incrementFields.equal(serialization.very4Name, false, increment);
return this;
}
/**
* Specify a new value for the {@code wet5} attribute.
*
* Corresponds to the MongoDB {@code $set} operator.
* @param value A new value for the {@code wet5} attribute
* @return {@code this} updater to be used to complete the update operation
*/
public Updater setWet5(double value) {
setFields = setFields.equal(serialization.wet5Name, false, Support.writable(value));
return this;
}
/**
* Specify an initial value for the {@code wet5} attribute. The value will be used if the document is
* to be inserted. If one or more documents are found for an update, this value will not be used.
*
* Corresponds to the MongoDB {@code $setOnInsert} operator.
* @param value The {@code wet5} value for an insert.
* @return {@code this} updater to be used to complete the update operation
*/
public Updater initWet5(double value) {
setOnInsertFields = setOnInsertFields.equal(serialization.wet5Name, false, Support.writable(value));
return this;
}
/**
* Specify an increment amount for the {@code wet5} attribute. If the document is to inserted
* and no initial value has been provided, then {@code 0} will be the default value and the increment will adjust it.
*
* Corresponds to the MongoDB {@code $inc} operator.
* @param increment An amount by which to increment the {@code wet5} attribute (may be negative)
* @return {@code this} updater to be used to complete the update operation
*/
public Updater incrementWet5(double increment) {
incrementFields = incrementFields.equal(serialization.wet5Name, false, increment);
return this;
}
/**
* Clear the {@code subs6} list attribute.
*
* Corresponds to the MongoDB {@code $set} operator resetting to empty array
* @return {@code this} updater to be used to complete the update operation
*/
public Updater clearSubs6() {
setFields = setFields.equal(serialization.subs6Name, false, ImmutableList.