com.noenv.wiremongo.mapping.Count 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.mapping;
import com.noenv.wiremongo.command.CountCommand;
import io.vertx.core.json.JsonObject;
public class Count extends WithQuery {
public Count() {
super("count");
}
public Count(JsonObject json) {
super(json);
}
@Override
protected Long parseResponse(Object jsonValue) {
return ((Number) jsonValue).longValue();
}
}