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

io.vertx.redis.op.BitFieldSetCommand 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.core.json.JsonObject;

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

  private String type;
  private long offset;
  private long value;

  public BitFieldSetCommand() {
  }

  public BitFieldSetCommand(BitFieldSetCommand obj) {
    type = obj.type;
    offset = obj.offset;
    value = obj.value;
  }

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

  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 long getValue() {
    return value;
  }

  public void setValue(long value) {
    this.value = value;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy