com.noenv.wiremongo.command.index.CreateIndexBaseCommand 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.index;
import com.noenv.wiremongo.command.collection.WithCollectionCommand;
import io.vertx.core.json.JsonObject;
public class CreateIndexBaseCommand extends WithCollectionCommand {
private final JsonObject key;
public CreateIndexBaseCommand(String collection, JsonObject key) {
this("createIndex", collection, key);
}
public CreateIndexBaseCommand(String method, String collection, JsonObject key) {
super(method, collection);
this.key = key;
}
public JsonObject getKey() {
return key;
}
@Override
public String toString() {
return super.toString() + ", key: " + key;
}
}