com.noenv.wiremongo.command.replace.WithReplaceCommand 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.replace;
import com.noenv.wiremongo.command.WithQueryCommand;
import io.vertx.core.json.JsonObject;
public abstract class WithReplaceCommand extends WithQueryCommand {
private final JsonObject replace;
public WithReplaceCommand(String method, String collection, JsonObject query, JsonObject replace) {
super(method, collection, query);
this.replace = replace;
}
public JsonObject getReplace() {
return replace;
}
@Override
public String toString() {
return super.toString() + ", replace: " + replace;
}
}