com.noenv.wiremongo.command.find.FindBatchWithOptionsCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-wiremongo Show documentation
Show all versions of vertx-wiremongo Show documentation
Lightweight mongo mocking for Vert.x
package com.noenv.wiremongo.command.find;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.FindOptions;
@SuppressWarnings("squid:MaximumInheritanceDepth")
public class FindBatchWithOptionsCommand extends FindBatchBaseCommand {
private final FindOptions options;
public FindBatchWithOptionsCommand(String collection, JsonObject query, FindOptions options) {
super("findBatchWithOptions", collection, query);
this.options = options;
}
public FindOptions getOptions() {
return options;
}
@Override
public String toString() {
return super.toString() + ", options: " + (options != null ? options.toJson().encode() : "null");
}
}