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