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

io.vertx.redis.op.BitFieldGetCommand Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR3
Show newest version
package io.vertx.redis.op;

import io.vertx.codegen.annotations.DataObject;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.json.JsonObject;

/**
 * @deprecated Use {@link io.vertx.redis.client.Redis}
 */
@Deprecated
@DataObject
public class BitFieldGetCommand {

  private String type;
  private long offset;

  public BitFieldGetCommand() {
  }

  public BitFieldGetCommand(BitFieldGetCommand obj) {
    type = obj.type;
    offset = obj.offset;
  }

  public BitFieldGetCommand(JsonObject obj) {
    type = obj.getString("type");
    offset = obj.getLong("offset");
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public long getOffset() {
    return offset;
  }

  public void setOffset(long offset) {
    this.offset = offset;
  }

  public JsonObject toJson() {
    return new JsonObject()
      .put("type", type)
      .put("offset", offset);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy