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

restdocs.tool.export.insomnia.exporter.Pair Maven / Gradle / Ivy

Go to download

Generates AsciiDoc snippets via Spring Restdocs that are exports for Insomnia or Postman that can be download and imported.

There is a newer version: 0.0.6-RELEASE
Show newest version
package restdocs.tool.export.insomnia.exporter;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Objects;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Pair {

  private String id;
  private String name;
  private String value;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getValue() {
    return value;
  }

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

  @Override
  public boolean equals(Object o) {
    if(this == o) return true;
    if(o == null || getClass() != o.getClass()) return false;
    Pair pair = (Pair) o;
    return Objects.equals(id, pair.id) &&
           Objects.equals(name, pair.name) &&
           Objects.equals(value, pair.value);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, value);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy