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

com.hubspot.chrome.devtools.client.core.domsnapshot.NameValue Maven / Gradle / Ivy

There is a newer version: 94.0.4606.61
Show newest version
package com.hubspot.chrome.devtools.client.core.domsnapshot;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * A name/value pair.
 */
public final class NameValue {
  private String name;

  private String value;

  @JsonCreator
  public NameValue(@JsonProperty("name") String name, @JsonProperty("value") String value) {
    this.name = name;
    this.value = value;
  }

  public String getName() {
    return name;
  }

  public String getValue() {
    return value;
  }

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

  public static final class Builder {
    private String name;

    private String value;

    private Builder() {
    }

    public NameValue.Builder setName(String name) {
      this.name = name;
      return this;
    }

    public NameValue.Builder setValue(String value) {
      this.value = value;
      return this;
    }

    public NameValue build() {
      return new NameValue(name, value);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy