com.noenv.wiremongo.command.index.CreateIndexesCommand 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.ext.mongo.IndexModel;
import java.util.List;
import java.util.stream.Collectors;
public class CreateIndexesCommand extends WithCollectionCommand {
private final List indexModels;
public CreateIndexesCommand(String collection, List indexModels) {
this("createIndexes", collection, indexModels);
}
public CreateIndexesCommand(String method, String collection, List indexModels) {
super(method, collection);
this.indexModels = indexModels;
}
public List getIndexModels() {
return indexModels;
}
@Override
public String toString() {
return super.toString() + ", indexModels: " + (indexModels == null ? "null" : indexModels.stream()
.map(IndexModel::toString).collect(Collectors.joining(",")));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy