restdocs.tool.export.insomnia.exporter.Pair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restdocs-tool-export Show documentation
Show all versions of restdocs-tool-export Show documentation
Generates AsciiDoc snippets via Spring Restdocs that are exports for Insomnia or Postman that can be download and imported.
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