All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noenv.wiremongo.mapping.find.FindOneAndDeleteBase Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
package com.noenv.wiremongo.mapping.find;

import com.noenv.wiremongo.command.find.FindOneAndDeleteBaseCommand;
import com.noenv.wiremongo.mapping.WithQuery;
import io.vertx.core.json.JsonObject;

@SuppressWarnings("squid:MaximumInheritanceDepth")
public abstract class FindOneAndDeleteBase> extends WithQuery {

  public FindOneAndDeleteBase() {
    this("findOneAndDelete");
  }

  public FindOneAndDeleteBase(String method) {
    super(method);
  }

  public FindOneAndDeleteBase(JsonObject json) {
    super(json);
  }

  @Override
  public C returns(final JsonObject response) {
    return super.stub(c -> null == response ? null : response.copy());
  }

  @Override
  protected JsonObject parseResponse(Object jsonValue) {
    return (JsonObject) jsonValue;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy