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

com.hubspot.chrome.devtools.client.core.indexeddb.DataEntry Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.indexeddb;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.runtime.RemoteObject;

/**
 * Data entry.
 */
public final class DataEntry {
  private RemoteObject key;

  private RemoteObject primaryKey;

  private RemoteObject value;

  @JsonCreator
  public DataEntry(@JsonProperty("key") RemoteObject key,
      @JsonProperty("primaryKey") RemoteObject primaryKey,
      @JsonProperty("value") RemoteObject value) {
    this.key = key;
    this.primaryKey = primaryKey;
    this.value = value;
  }

  public RemoteObject getKey() {
    return key;
  }

  public RemoteObject getPrimaryKey() {
    return primaryKey;
  }

  public RemoteObject getValue() {
    return value;
  }

  public static DataEntry.Builder builder() {
    return new DataEntry.Builder();
  }

  public static final class Builder {
    private RemoteObject key;

    private RemoteObject primaryKey;

    private RemoteObject value;

    private Builder() {
    }

    public DataEntry.Builder setKey(RemoteObject key) {
      this.key = key;
      return this;
    }

    public DataEntry.Builder setPrimaryKey(RemoteObject primaryKey) {
      this.primaryKey = primaryKey;
      return this;
    }

    public DataEntry.Builder setValue(RemoteObject value) {
      this.value = value;
      return this;
    }

    public DataEntry build() {
      return new DataEntry(key, primaryKey, value);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy